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

Support for KTX file with internal format of SRGB8_ALPHA8 #24

Open
samcake opened this issue Feb 22, 2017 · 2 comments
Open

Support for KTX file with internal format of SRGB8_ALPHA8 #24

samcake opened this issue Feb 22, 2017 · 2 comments

Comments

@samcake
Copy link

samcake commented Feb 22, 2017

I get a"Unknwon format" message when trying to load a ktx texture where we specify the format as follow:
glType = UNSIGNED_BYTE
glTypeSize = 4
glFormat = BGRA
glInternalFormat = SRGB8_ALPHA8

WHich is what i think is the right way to specify the ktx to represent a sRGB image

THanks for PicoPixel!

@jaytaoko
Copy link
Contributor

jaytaoko commented Mar 9, 2017

Thank you for reporting. Can you share the file that has this issue?

@samcake
Copy link
Author

samcake commented Mar 14, 2017

Here are 3 textures of different sizes
I generate them myself in my texture pipeline after we loaded them from conventional png or jpeg.
If i specify the glInternalFOrmat to be BGRA then it s fine, i can view the texture in PicoPixel.

Temp.zip

THanks!

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

No branches or pull requests

2 participants