Firstly apologies in advance for potentially dumb questions. I have rudimentary java (python, swift, matlab) coding experience as my background is engineering in particular CAD modelling and aerodynamics. I’d like to learn Babylon.js to help provide 3D assets for our companies website and I am struggling at the beginning of my journey to get going.
I’ve have managed to create a number of textured 3D models in Blender and can export these as .babylon files using the exporter provided on the website. These then load fine in the sandbox hosted on the babylonjs.com website. However, I am struggling with the next stage of hosting these on a (local) web-page.
If I use the boiler-plate code from the tutorials (shown below) it all works fine, i.e. it loads the simple cube.
BABYLON.SceneLoader.ImportMeshAsync("", “https://assets.babylonjs.com/meshes/”, “box.babylon”);
However, I cant seem to modify this to load local files. I’ve tried a number of things such as replacing the “https…” path with a “c:…” path, or omitting this completely and making sure the . html file is in the same local folder and the .babylon file and texture assets.
Thinking it might be the model itself I have then just recreated the simple box from the earlier tutorial and exported it using the insector but equally this doesn’t work either.
The local webpage (using chrome) doesn’t throw any areas or anything but all I see is a dark blue background with no model.
I’m normally quite happy to poke around and learn by trial and error but I can’t even get past this first hurdle.
Look forward to hearing your thoughts.