Skip to content
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

Low quality DXT compression #463

Open
xrModder opened this issue Mar 23, 2024 · 3 comments
Open

Low quality DXT compression #463

xrModder opened this issue Mar 23, 2024 · 3 comments
Labels

Comments

@xrModder
Copy link

xrModder commented Mar 23, 2024

I'm using DirectXTex to save DDS textures. I noticed that DirectXTex, compared to other tools, when saving textures in the compressed DXT format, loses detail, especially during smooth transitions. For example, on the very old X-Ray SDK (S.T.A.L.K.E.R.), the quality of texture compression is much better (in the X-Ray SDK, for some reason, the dither flag does not affect the compression quality, textures without and with dither are binary identical).

Comparison

Comparison

Test textures: Textures.zip

How to achieve high quality DXT compression using DirectXTex?

Sorry for my English (I write through a translator).

@suphamster
Copy link

I agree with you, "NVIDIA Texture Tools Exporter 2024.1.0" gives much better quality than "texconv.exe" when converting from BC7 to DXT5 (BC3_UNORM_SRGB) using same settings.

@walbourn
Copy link
Member

@suphamster Why would you convert from a higher quality compression to a lower-quality compression and expect good quality?

@suphamster
Copy link

suphamster commented Mar 26, 2024

Garage_cmp.zip
I've attached zip with 3 dds files to compare (original BC7, "NVIDIA Texture Tools Exporter 2024.1.0" and "texconv.exe" both DXT5). I expect resonable quality after compression without much loss (look at red car front) that happens after using texconv.exe in my case.
Upd: "-bc u" parameter makes image better (removes pixelation in some cases) but still not so good as using NVTTE (that has features like gauss blur or smoothing to get rid of blocking artifacts),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants