I tried meshes importing.
Current success how was SceneLoader + .obj file.
And i’m still trying assetManager.addMeshTask().
This is easy at the PlayGround. [https://www.babylonjs-playground.com/#ZJYNY#177]
But this hard from case that used my meshes.
Next imported file was same.
Top case was logging well all meshes names.
But bottom case’s isCompleted was always false.
SceneLoader.ImportMesh('', 'static/resources/meshes/', 'back-ground.babylon', scene, meshes => {
for (const mesh of meshes) {
console.log(mesh.name);
}
});
&
const meshTask = assetsM.addMeshTask(
'bgTask',
'BG',
'static/resources/meshes/',
'back-ground.babylon'
);
setInterval(() => {
console.log(meshTask.isCompleted);
}, 100);
Two case was different? (directory connection part?).
OR my file was wrong? (exported from blender3D).back-ground.zip (1.7 KB)