Hi
I have made collections for different parts of my 3d model. I mean I separate room, kitchen, living room, bath and. …
But When I export all parts are in gltf. scene.children
But I need all of them in their group. I mean each collection one group
How Can I access them in three.js?
If you open the model in https://gltf-viewer.donmccurdy.com/ and then look at the JavaScript console you’ll see the three.js scene graph printed — does it have names corresponding to your Blender collections?
If you’re using R3F or another framework, that would be good to know, and might steer the solution in certain directions as well.
Have you tried this option yourself? I tried but could not make it work, it always just exports all the meshes in one group like without this option enabled.
As @donmccurdy has mentioned, the functionality is available in Blender 4.2. I tried it in the latest version (4.2.1) and it did not work unfortunately.
Make them children of an empty object instead of a collection in Blender and they will be exported as a group.
the empty object will be the parent and you will see it as Object3D in threejs.
It will works with any blender version
Do you mean finally, we have a scene that is a group that has some other groups?
Yes exactly
The scene is the first group and you will have others group (groupA for exemple) as children and meshs Can be children of the groupA








