Error during merging meshes from imported .glb

Hi there,
i’ve an error while attempting to merging different meshes of the same imported .glb object.
The .GLB object is composed by 20 different meshes, but when i use BABYLON.Mesh.MergeMeshes i got this error: Error: Cannot merge vertex data that do not have the same set of attributes

You can try on this PG:
See line 140.

It’s clear that the mesh object has something wrong, but i can’t figure out how to fix it.
Any idea?


Basically, you can only merge meshes who are compatible together meaning they need to have the same info for instance (position + normals + uv1).

In your case it looks like some might have different combinations so we can not merge them or we would need to invent missing datas.

looks like few meshes have a 2nd set of uvs and other don’t.


Thank you guys, i solved exporting from blender deselecting UV

1 Like