Hello, I’m new around here and I’m starting my first big project with Babylon!
I’m importing a 3D room from Blender. If I use SceneLoader.Append everything loads ok, but I can’t access the individual meshes, so I’m using SceneLoader.ImportMesh. The problem is that this method does’t load the light, nor the normalmaps as far as I have investigated.
Is it there a well known strategy to achieve this?
Thanks for any help.
PS: Excuse me for my bad writing as I’m not native english speaker.
Hi. You need use append and you always can get meshes after load your file BABYLON.SceneLoader.Append("./", “duck.gltf”, scene, function (scene) {
// there you can do anything with your loaded meshes
});
In that order of ideas, What am I doing wrong? If I use Append as de loader method I lose control over the camera and i’m not able to use the physics as Gravity or CollisionDetection, as I have it with ImportMesh. This is how I’m using the Append with no success. I create the camera and other meshes variables outside this function:
///
With this same code, but if I use the SceneLoader.ImportMesh method, meshes and camera physics work fine, but again no lights or cameras are imported.
And on loaded scenegraph you cant get mesh by name you can get mesh by name only in BABYLON scenegraph after load your model in loader callback “function (scene) {}”