-
Notifications
You must be signed in to change notification settings - Fork 15
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
glTF fails texture encoding test #144
Comments
I was a bit wrong, because Safari always does |
glTF ignores ICC color profiles and custom gamma in images, but not X3D.
Here is a example image with custom ICC color profile: Either we should always do |
I haven't found anything in X3D spec about textures and ICC color profiles: |
Thank you for the investigation. Probably time to ask on x3d-public for guidance. I can do that. |
Let's see if there is a response on x3d-public. I remembered why I did not focus on that at the time. It is clear that the test glTF asset in the issue and the image used in the comments have unrealistic, extreme ICC profiles which is not a fair representation. For most textures the problem would be subtle. So this is not an urgent problem. Also, authors can always decide to use images without embedded profiles. But there is a problem if pixel accurate glTF rendering with exact colors is a goal. |
Castle renders the test correctly: It converted the gltf to this x3d: The x3d has the textures converted to giant PixelTextures without the ICC applied. So that could be an option but it is not practical for larger images. |
https://create3000.github.io/x_ite/laboratory/gltf-sample-viewer renders the Texture Encoding Test as:
but the reference image at https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/TextureEncodingTest is:
x3dom has the same issue x3dom/x3dom#1258.
The text was updated successfully, but these errors were encountered: