#Gltfexporter exports object with duplicate meshes

9 messages · Page 1 of 1 (latest)

quaint vale
#

the original object does not have duplicate meshes, but when I export it with gltfexporter it provides duplicate meshes. What is causing this?

#

Gltfexporter exports object with duplicate meshes

humble olive
#

i don't think we'll guess much from a screenshot, but ... are they duplicates in appearance too? or only in name?

#

if the original file had multiple 'mesh primitives' in a single glTF 'mesh', it would come out of three.js as multiple meshes... simply that concepts like meshes and materials do not always map 1:1 when going from <file format> to three.js to <file format> to Blender, and so on.

#

Or might be different structuring of skinned meshes and skeletons.

#

I would definitely expect some differences in structure after a GLTFLoader + GLTFExporter round trip, not sure what specifically is causing what you see in that screenshot, though.

quaint vale
past fog
#

if one mesh has multiple materials, gltf exporter splits the mesh into multiple meshes having 1 material each (i think it's done for performance reasons)

quaint vale
#

Is there any way to bypass it? @past fog