roland
April 12, 2024, 7:28pm
1
Hello community!
Blender 4.1 has killed the possibility to export vertex colors to GLB if the mesh has no material assigned! Simply the COLOR_0 attribute is not exported.
We compress the exported GLB with an external tool and we thought the error comes from the tool. After a few hours of trial and error we traced it back to Blender.
We use vertex colors to fake AO maps:
Textures are assigned in babylon.js and the result is:
Hopefuly this tip can prevent you from pulling your hair out after facing the same issue and not able to solve it
9 Likes
roland
April 16, 2024, 11:36am
2
This is the PR which killed it:
KhronosGroup:main
← KhronosGroup:vertex_color_only_when_used
opened 10:01AM - 30 Sep 23 UTC
Export Vertex Color only when used in shader node tree
See #1740
Still WIP,… need probably some adjustments
The community responses are quite negative. This one is LOL:
KhronosGroup:main
← KhronosGroup:vertex_color_only_when_used
this is the dumbest commit in the history of the game development industry
1… . vertex color attributes arent only used for colors, most of the time theyre used for other stuff
2. even then, exported models actually rarely have materials setup in blender
Khronos along with committees like the C++ committee have slowly become batshit insane. Please, find common ground with the industries you're working with again, because you've lost it along the way.
I'm not sorry I went with fbx over gltf, despite being encouraged otherwise.
1 Like
x_z
June 1, 2024, 2:11pm
3
I am also using js with vertex color, and I spent the last week trying to figure this out, thank you.
2 Likes