-
Notifications
You must be signed in to change notification settings - Fork 41
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
metallicRoughnessTexture encoding is wrong #84
Comments
Depending on whether someone can definitely say whether this is duplicate of the issue around KhronosGroup/glTF-Sample-Models#316 (comment) , it might be closed. (I think it is, but others should confirm...) |
tl;dr – the ICC profiles are often wrong, the data is likely not sRGB. Agreed it'd be nice if we can fix the ICC profiles, that's a bit of a messy area in photo-editing software historically IMHO. Implementations of glTF are required to ignore the profiles for that reason. I'd be open to putting something in glTF-Transform to fix incorrect ICC profiles too though, it'd be ideal to have these samples be clean unless there're explicitly testing that requirement. The library I'm currently using (sharp.js) does not let me edit the ICC profile without re-encoding the image, unfortunately. |
This repo is being ARCHIVED. Transferred to glTF-Sample-Assets. |
I've looked into this more, and haven't yet found a clear answer as to how one should tag a particular image as "non-color data". With KTX2 textures there's a clear way to do this. With ICC profiles and EXIF, I have no idea. See discussion in: I imagine this is all part of the reason the spec requires implementations to ignore any ICC profile present. Anything else would require some external convention on how to represent non-color data in images, and that convention does not appear to exist today. 😕 |
The spec says:
But metallic-roughness textures in Sponza folder are encoded with sRGB. Checked it with ImageMagick and PVRTexTool.
The text was updated successfully, but these errors were encountered: