I’m attempting to build a preloading system for my game where I would like to load all my models (GLB) up front and display a loading bar while doing so.
The thing is, the only code I’ve been able to get working will load the mesh and immediately place it in my scene. For example:
await SceneLoader.ImportMeshAsync('', filepath, filename, scene);
What I want is to load my models before creating my scene, and then assemble my game world by creating clones of the originally loaded assets and positioning them according to my map data (I will have many repeat models, such as trees and rocks).
Is this possible? Or am I approaching this all wrong?
I’m new to Babylon.js, it’s amazing and I appreciate any and all advice shared.