-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support TGA color-mapped files with expansion #38
Comments
There's generally not much call for color-mapped |
Thanks a lot Chuck for this great library. I tested DirectXTex for .tga sample files on http://www.fileformat.info/format/tga/sample/index.htm, and only one file, 'CCM8.TGA', cannot be correctly decoded because it's a color-mapped TGA. It's still nice to have DirectXTex support this kind of file so that people can use it as a general TGA reader, and along with other awesome functions such as pixel format conversion. |
@dingsheng999 Thanks for the feedback. The vast majority of use-cases for |
@walbourn I tried to search on Bing, Baidu, Google and a even a few image websites for professional artists but cannot find a single real case color-mapped TGA file. That sample file is the only one I can find. |
It seems like color-mapped TGAs just never got any real traction in the real world since other formats cover that scenario well. As such, I'm closing this issue. |
The current TGA loader does not support
TGA_COLOR_MAPPED
orTGA_COLOR_MAPPED_RLE
images. Legacy D3DX9 did support them, but loaded them asD3DFMT_P8
(i.e. 256-index palette).While there are no palette DXGI formats, such TGA files could be expanded to
B5G5R5A1_UNORM
(bColorMapSize
of 15 or of 16) orR8G8B8A8_UNORM
(bColorMapSize
of 24 or 32).The text was updated successfully, but these errors were encountered: