it seems like there is a problem with the materials. When using the debug layer and expanding the material node, the Scene Explorer is closed immediately. For all other nodes, these are expanded and can be browsed.
It is also not possible to export parts or the entire scene.
Perhaps it is because of the procedure for “renewing” the meshes.
The following routine is currently used:
for all materials: material.dispose ();
for all meshes: mesh.dispose ()
for all new meshes:
mesh = new BABYLON.Mesh (…)
vertexData = new BABYLON.VertexData (…)
set vertex data …
vertexData.applyToMesh (mesh, true);
material = new BABYLON.PBRMaterial (...)
set material ...
mesh.material = material;
Can textures be assigned to multiple materials? What happens to the textures when the material is disposed.