ChrisR Posted September 9, 2015 Share Posted September 9, 2015 I am trying to open a file that i have saved using SceneSerializer.Serialize. This file had originally one mesh imported. After its imported i clone it using: var cloneMesh = newMeshes[0].clone('clone', null, false);cloneMesh.position.x += 50;Then i save it using: var serializedJSON = BABYLON.SceneSerializer.Serialize(scene);var serializedString = JSON.stringify(serializedJSON);This appears to be working well. Then i try to load it. When i load it i can see both meshes got imported into the scene. However only one is displayed. Take a look at the playground here:http://www.babylonjs-playground.com/#UH1RI#1 in the debug layer i can see all the clone.x meshes and the original meshes, however i can only see one of the models. What can I do to get the clone to be loaded properly? Any help would be greatly appriciated. Thanks! Quote Link to comment Share on other sites More sharing options...
ChrisR Posted September 9, 2015 Author Share Posted September 9, 2015 Nevermind, i figured it out. They were both there, they were just on top of each other. So it didn't save the position of the clone properly. This i will look into myself now. Thanks! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.