waverider Posted May 21, 2018 Share Posted May 21, 2018 Hy there!! I tried to clone my gltf model and the skeleton and animate the models seperately at different intervals but it seems that the animation of other skeleton is dependent on the parent model. You'll see that i increased the animaton speed for the clones but it's not reflecting http://www.babylonjs-playground.com/#1NSCXV#7 @Deltakosh Quote Link to comment Share on other sites More sharing options...
Guest Posted May 22, 2018 Share Posted May 22, 2018 Your code has error (check the console). I think that rabbit.skeleton is undefined and probably the mesh holding the skeleton is not the first one waverider 1 Quote Link to comment Share on other sites More sharing options...
waverider Posted May 22, 2018 Author Share Posted May 22, 2018 I tried with a different gltf model, it's still the same I used blender to export Quote Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2018 Share Posted May 23, 2018 No I did not mean that your mesh is wrong. I just meant that rabbit should not be newMeshes[0] but probably newMeshes[1] waverider 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2018 Share Posted May 23, 2018 Ok did some testings: http://www.babylonjs-playground.com/#1NSCXV#8 Your scene is composed of several meshes (and not a single one). All with skeletons waverider 1 Quote Link to comment Share on other sites More sharing options...
waverider Posted May 23, 2018 Author Share Posted May 23, 2018 ohh i get it now...the animation looks kinda deformed too http://www.babylonjs-playground.com/#1NSCXV#9 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2018 Share Posted May 24, 2018 Well you have to do the clone for every skeleton: http://www.babylonjs-playground.com/#1NSCXV#10 waverider 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2018 Share Posted May 24, 2018 But I highly recommend that you create an unique mesh with an unique skeleton to make it easier to use waverider 1 Quote Link to comment Share on other sites More sharing options...
waverider Posted May 25, 2018 Author Share Posted May 25, 2018 Thanks that sure helps!!! Quote Link to comment Share on other sites More sharing options...
Estraven Posted May 16, 2019 Share Posted May 16, 2019 Maybe i'm missing something, but I'm running into similar problems, and the playground examples seems broken. Maybe the BabylonJS 4 is broken again on cloning GLTF objects ? Quote Link to comment Share on other sites More sharing options...
MarianG Posted May 21, 2019 Share Posted May 21, 2019 Hi @Estraven If you didn't do it yet, please post your question here https://forum.babylonjs.com 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.