Hello.
I’m trying to create instances of a mesh I imported.
On my local project I’m successfully importing a mesh that was made in blender, but when I try to create instances of it nothing happens.
The mesh is really simple and similar to a block and I’ll need to display hundreds of them at once which is why the instancing is critical for our project.
The objects do get created and I can print them out to the console, but the mesh is not being displayed.
I made a playground where you can see this behavior.
I cannot create instances of the rabbit mesh just like I can’t create instances of my own mesh in my local project.
The tree mesh and simple blocks work just fine on both the playground and my local project.
I don’t know much about it, but it sounds like a “tree-walking instantiator”… which somehow sounds important. It might be used mostly for root-less models… not sure.
If you use loadAssetContainer, you can use the new function that @deltakosh added instantiateModelsToScene to duplicate all of the loaded models. This will duplicate skeletons, animation groups, etc. so that you can animate the duplicates separately.
Using the second mesh from the array solved my issue like @RaananW suggested.
I’ll look more into mesh instantiateHierarchy() and the LoadAssetContainer as well
Seeing how supportive this community and devs are makes me really excited to dive deeper into babylon. Hopefully I’ll also be able to also help someone down the road.