Nic*_*mot 6 file-format specifications image tga
TGA图像规范包含以下两个字段:
Field 5.1 (2 bytes) - X-origin of Image:
These bytes specify the absolute horizontal coordinate for the lower
left corner of the image as it is positioned on a display device having
an origin at the lower left of the screen (e.g., the TARGA series).
Field 5.2 (2 bytes) - Y-origin of Image:
These bytes specify the absolute vertical coordinate for the lower
left corner of the image as it is positioned on a display device having
an origin at the lower left of the screen (e.g., the TARGA series).
Run Code Online (Sandbox Code Playgroud)
这对我来说很奇怪.为什么屏幕上的图像位置包含在图像本身的数据中?我希望图像不关心它们的位置,因为这是渲染引擎的责任.这可能与TGA图像是专为特殊显卡设计的事实有关吗?
以下是TGA规范的链接供参考:http://www.dca.fee.unicamp.br/~martino/disciplinas/ea978/tgaffs.pdf
经过一番交谈,我们推断这些字段用于将大图像分解为许多较小的图像。例如,如果将图像分割为 256x256 块,则 3Dfx 显卡在绘制全屏图像时效率最高。屏幕上这些块的偏移量可以使用该字段来表示,这将允许渲染器重建原始图像。
请参阅此 Twitter 线程:https://twitter.com/Donzanoid/status/496248178799550464
| 归档时间: |
|
| 查看次数: |
748 次 |
| 最近记录: |