0xC0000054 / pdn-ddsfiletype-plus

A Paint.NET filetype plugin that adds support for some of the DDS formats introduced in DirectX 10 and later.
https://forums.getpaint.net/topic/111731-dds-filetype-plus/
MIT License
70 stars 5 forks source link

Upon Importing an DirectX9 8BIT DDS File, the colors are wrong than what it's supposed to be #19

Open jaigitrep159 opened 1 month ago

jaigitrep159 commented 1 month ago

I'm using Paint.NET 5.0.13, with DDSFileTypePlus v1.12.10.

Instead of Blue, the colors are brown. Idk why this happens because of the DDS codec.

(Left: PNG, Right: DDS) image

Files.zip files extracted from MaxHwoy's NFS Binary.

Do you think you can support DX9's TEXCOMP_8BIT and TEXCOMP_8BIT16 codecs? Thanks.

jaigitrep159 commented 1 month ago

Another one that's similar.

BMWM3GTRE46_DEBUG Original

image Paint.NET's DDSFileTypePlus

provided files: Files2.zip

jaigitrep159 commented 1 month ago

It seems like the game texture i extracted from Need for Speed: Most Wanted (2005) Vinyls, is that it uses "DXGI_FORMAT_P8" or "DXGI_FORMAT_A8P8"

according to this doc: https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format

it seems like it's a palettized 8 bit image. It also includes alpha.

0xC0000054 commented 1 month ago

This appears to be an issue with the DirectXTex library that the plugin uses to load DDS files. You will likely get a better answer about what the problem is by opening an issue in the DirectXTex GitHub repository: https://github.com/microsoft/DirectXTex

Looking at the DirectXTex code I couldn't tell if P8 or A8P8 are supported legacy formats.