Export meshes from Blender to GLTF as Three.Group

Right so the problem here is that GLTF is already using parent/child hierarchies to bridge differences between modelling software (1 mesh + multiple materials) and GLTF (1 mesh = 1 material).

There is an additional constraint with GLTF in that, if it is performing quantization of the vertex format… (converting 4 byte floats to uint16 or some other more optimal datatype) this also requires inserting parent nodes to rescale the model back to it’s original domain… so in that case you will see like:

root = (group)->
    child rescale transform (object3d)->
         child mesh,
    child rescale transform (object3d)->
         child mesh

My gut instinct here is to use some kind of naming convention… like:
theParentObject.name = ‘car_root’
that you can key off of.

1 Like