-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
DDS BC6 decoding has a broken blue channel #6344
Comments
Would we be able to get a copy of the image itself? |
I've uploaded the source image (which is a cubemap with several mip levels) in 2 formats, .dds and .ktx2: As the broken output .dds file is quite large (128mb) it exceeds the 25mb upload limit unless I make a non-trivial modification. Let me know if you'd like me to send that to you by another means though! |
Thanks for the image. I'm not happy with it enough yet for a PR, but see what you think of radarhere@3b51e1c. It generates this from your image. |
Update dev-dependency and build script
I attempted to use the code in https://github.com/python-pillow/Pillow/blob/main/src/libImaging/BcnDecode.c for a project in order to decode BC6 textures. The red and green channels decoded correctly but the blue channel ended up being mangled somehow.
Here's the red channel of the image as displayed in renderdoc:
and here's the blue channel:
This results in an image that looks like this:
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: