GLTF Vertex Color / Texture discrepancy
See original GitHub issueThe rendering of meshes with color information stored in vertex colors or albedo textures is different. From my understanding, they should be the same?
To reproduce, load GLBs from VertexColor and Texture into your viewer.
There has been a lot of discussion about how to properly apply gamma to threejs and it seems that setting renderer.gammaoutput = true;
is the recommended path for GLTF. This seems to not work for non-textured GLTF models though.
(The texture is created with Substance Designer Baker with the Color-From-Mesh option to bake vertex colors to a texture. The texture is sRGB.) -> basecolor texture
-> Something doesn’t really add up with how gamma is handled. On a sidenote, setting renderer.gammaInput = true;
for the textured version makes a visual difference and looks more correct (more contrast) - which it shouldn’t because if everything would work correctly, the texture.encoding set to sRGB in the GLTFLoader would be enough?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Hey, sorry for missing this. I am unable to find anything, so far, about FBX being able to store metadata on how RGB tuples should be interpreted. I’m pessimistic but holding out hope that there’s rhyme and reason here, and not just amorphous semi-consensus between different generators.
Thanks! Yeah, I was afraid that might be the case.