vbillet Posted October 30, 2013 Share Posted October 30, 2013 Hi, first of all, thank you for this great piece of code. I try to build a simple animation : 1 armature, 1 bone, and 1 cube parented to the bone. This animation works perfectly in blender. Unfortunately, it doesn't works in my babylon application. I used this code : BABYLON.SceneLoader.Load("", "myproject/assets/testRot.babylon", engine, function (newScene) { // Wait for textures and shaders to be ready newScene.executeWhenReady(function () { // Attach camera to canvas inputs newScene.activeCamera.attachControl(canvas); newScene.beginAnimation(newScene.skeletons[0],1,40,true,1.0); //newScene.meshes[0].parent=newScene.skeletons[0].bones[0]; // Once the scene is loaded, just register a render loop to render it engine.runRenderLoop(function() { newScene.render(); }); }); }, function (progress) { // To do: give progress feedback to user }Is it possible to post a simple blender animation tutorial with export exemple.I join my sample blender file. Thank tou for your reply. testRot1.zip Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2013 Share Posted October 30, 2013 could you post your sample somewhere so we can try it? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2013 Share Posted October 30, 2013 Did you see this tuto:https://github.com/BabylonJS/Babylon.js/wiki/How-to-use-bones-and-skeletons Quote Link to comment Share on other sites More sharing options...
vbillet Posted October 30, 2013 Author Share Posted October 30, 2013 So, here is the project. Yes I saw this tutorial. I'm not sure to understand "preparing mesh" section.I really can't find what's happening, and what can break the animation into babylon.Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 31, 2013 Share Posted October 31, 2013 Do you have it running somewhere on a web server? I'm travelling and I have no way to setup a web server quickly Quote Link to comment Share on other sites More sharing options...
vbillet Posted November 1, 2013 Author Share Posted November 1, 2013 Ok, I solved my problem with this animation. To use animations you need to create Vertex group in blender. JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
ProfessorF Posted December 23, 2013 Share Posted December 23, 2013 Yikes, you're going to set a vertex group by hand? You can get close with: 1. Select your mesh2. Select your armature3. Control-P > Armature Deform > WIth Automatic WeightsOR 3 Control-P > Armature Deform > WIth Envelope Weights 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.