satguru Posted February 14, 2016 Share Posted February 14, 2016 I have a .babylon file containing a mesh and a skeleton (with animation) I load the mesh and skeleton into a scene, twice, using the SceneLoader ImportMesh() function. So now if I have a scene with two mesh and two skeleton. If I play animation on one skeleton it only animates the mesh it is attached to. So far so good Now I serialize the scene and save it to a file. I load the scene using the SceneLoader Load function. I play animation on one skeleton. Both the meshes are animated. !! I think the issue is that, unlike mesh and bones, skeletons do not have a uniqueId. In a serialized scene, meshes have references to skeleton ids and that skeleton id not unique. I think we should have uniqueId for each skeleton instance and when the scene is serialized the mesh should be serialized referencing their skeletons uniqueId. Quote Link to comment Share on other sites More sharing options...
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.