MergeBufferGeometries from GLTF file

Hello everyone.
I’m trying to merge geometry with similar material, but on some models parts of geometry doesn’t render correctly. renderer.info shows that all vertices are rendered but visually its wrong. I think I’m misunderstood some basic knowledge:
https://jsfiddle.net/disturber/7dbsa4q6/50/

There might be more going on than this, but at this line…

geometry.applyMatrix4(node.parent.matrix);

… you’ll want to apply node.matrixWorld, rather than just the parent’s local matrix.

2 Likes