Second post on here so far, again I am new so bear with me… lol
So I have a basic model that I created in blender, joined the objects together then exported the model as a GLTF. This model I am planning on creating multiple duplicates with it being the exact same. No differences just different locations. So I am not sure if clone is better for me in this scenario because I am not really changing anything with the duplicate.
I went through and created my full on project locally and then looked at the scene debug layer and noticed I had 175 draw calls and im only rendering 11 objects on the scene, so I started down the route of instancing or cloning.
I then went to import the mesh and followed the createInstance tutorial on the babylon js guides.
Through research I tried following the route of the IsVisible solution and the .SetEnabled path also.
I cannot get them to duplicate, is it because the meshes that are imported has more than one? If so, does the blender “join” functionality not work as expected? lol
Cloning will work but I just want to see why the instance isnt? Reading through the guides and docs, instances seem to be what I need, just trying to make it as performant as possible.
Couple of questions for you, is there any reason why it would be working in the playground but not in my local project?
Copied and pasted the code from here and I am getting “root.instantiateHierarchy is not a function”. Importing the same exact mesh and doing the same exact code. Am I out of date or using the wront import library or something?
And would this instantiateHiearchy be a performant way of making duplicates? Would it be better to merge all the meshes from the import method then create an instance?
So wrapped this in a try/catch and its not hitting the catch and its not even getting to the first line within the callback. Any ideas? Like I said, this was only after the update.