How to have a hierarchical order with InstacedMesh

I had a hierarchical for my scene graph, but I had bad performance with many meshes so I went with InstancedMeshes:

My question is, if its possible to replicate the hierarchical order of my meshes with one instancedMesh.
scene.children would be row 1
row1.children would be row 2 in a “classical” mesh approach.

The only way I find is to “fake” the hierarchy is via setting the global position of every mesh instance.

It’s not possible to model hierarchical relations between instances with THREE.InstancedMesh. This is something you have to handle on application level.

3 Likes