I’m trying to add interaction to an application where I have various complex mesh trees. The actual “entities” in my application are these mesh trees, all of which have a TransformNode
as a root, in which I stored a custom property with information about the entity itself.
When clicking on any mesh that is part of the entity, I want to traverse the tree back up to the root TransformNode
for that entity, where then I can access the custom information to display it in the application.
The problem arises when using Auto-LOD with my imported GLTF models. The interaction picks the decimated models instead of the normal meshes, and those decimated models do not have the same root as the original ones, so I cannot traverse parent links to find my stored custom information.
The following playground shows the issue. At the top I added a flag do disable simplification, to show that without it it works.
It could be that there’s a bug with simplification of imported GLTF models, as I’ve seen that with another mesh (a .babylon
file) my example works correctly: