#Strange Colors with KTX2 Texture

4 messages · Page 1 of 1 (latest)

dark herald
#

I get some pretty bizarre results when converting a PNG texture to a KTX2 texture. Maybe I'm skipping a step or something?
I've used a couple different methods of removing the ICC profile and also different compression formats. Same basic result.
I've attached an image that shows the PNG on top compared to the KTX2 texture below.
Here are the commands I'm using to generate the KTX2 texture:

toktx --assign_oetf srgb --t2 --genmipmap example.ktx2 example.png
ktxsc --uastc 1 -o example_2.ktx2 example.ktx2

It might be worth mentioning that there is a bloom effect being applied, but as long as the underlying texture has the same RGB values, I don't see how that would affect the final rendered image.

balmy coral
#

does --assign_oetf linear change the result here?

#

sRGB (as you originally wrote) is likely to be the 'correct' choice, but if linear works that's a good indication that something is off in the color management of the workflow or application.

dark herald
#

I'll give that a try. Thanks for the suggestion.