Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

BC5 conversion of PNG files swaps R and G channels #286

Open
c2aDS opened this issue Jul 26, 2018 · 1 comment
Open

BC5 conversion of PNG files swaps R and G channels #286

c2aDS opened this issue Jul 26, 2018 · 1 comment

Comments

@c2aDS
Copy link

c2aDS commented Jul 26, 2018

If I take an uncompressed normal map in BMP format and save it to PNG using photoshop or xnview for example (input images are the same at this step) and then use nvcompress to convert them both to DDS in BC5 format with these flags : nvcompress -bc5 myfile

The DDS from BMP file is correct when I open it in photoshop (even if the colors are washed out, the orientation is the same as in the uncompressed BMP image)
The DDS from PNG is incorrect : the red and green channels are swapped. The orientation is wrong in photoshop. If I swap the channels I get the right orientation (same result as BMP DDS)

@LMCrashy
Copy link

I've spotted this too, but when sampling the normal map everything seems to be ok.

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

No branches or pull requests

2 participants