Hi guys.
We create groups in Blender and manage our meshes.all objects are inside different groups. we do not have independent mesh without groups.
But when we export our 3d model to glb and load it in three.js some groups converted to mesh.What is the reason ?
We need just groups like when we load model on blender
but in threejs
look at type some of them are group some of them are mesh
We create groups in Blender and manage our meshes.
Risky choice if you decide to do that and export all at once - a lot of things become significantly more complex by putting everything into a single file, things like animations, IDs (things are not allowed to have same IDs in blender, you’ll get -001
suffixes as soon as any part has a similar ID), positions.
In Blender terms - these are all meshes, not groups:
But they will become THREE.Groups
as soon as they have more than a single material assigned to the mesh object.
If you do choose to stay within a single file - consider packing your meshes into Blender’s Collections
(which would be the proper grouping way in Blender) and creating a Python script that’ll export each Collection separately as a GLTF (if you don’t know Python, that’s one thing ChatGPT can be actually helpful with - it writes Blender scripts perfectly.) Relying on Mesh / Group identification by GLTFExporter can be quite chaotic.
1 Like