GrosSacASacs Posted May 3, 2016 Share Posted May 3, 2016 I import mesh from a json babylon file into BabylonJS with BABYLON.SceneLoader.ImportMesh, I then use scene.beginAnimation(allMeshes[meshName], 0, 100, true); This works well for 1 animation. How can I have multiple animation for 1 mesh ( walking, running, idle, laughing) and use it in Babylon ? In Blender you can give names to the different actions. I searched the docs but didn't found an answer. 1 temporary solution I see, import the same mesh with 1 different animation multiples times, and when we want to start an animation we replace the mesh with the same at the same position except it has a different animation and then call scene.beginAnimation . Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 3, 2016 Share Posted May 3, 2016 Hello we are supporting named animations (actions) from blender (suing AnimationRang): scene.executeWhenReady(function () { // Attach camera to canvas inputs scene.activeCamera.attachControl(canvas); // Once the scene is loaded, register a render loop engine.runRenderLoop(function() { scene.render(); }); var skeleton1 = scene.getSkeletonByName("Armature"); skeleton1.beginAnimation("walk"); }); Just search the forum for "AnimationRange" to get more example Nesh108 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.