vendoc Posted December 3, 2015 Share Posted December 3, 2015 Hello every one, i have an issue about loading a armatured babylon file.I have a blender file with skeleton, then i export it to babylon. when i load it in babylon my file can move but the move is so strange. it doesn't move like in blender. here is my codefunction loadGajah() { BABYLON.SceneLoader.ImportMesh("", "assets/", "gajahGerak5.babylon", scene, function (newMeshes, particleSystems, skeletons) { newMeshes[0].checkCollisions = true; //newMeshes[0].position = new BABYLON.Vector3(-80, -13, -50); newMeshes[0].position = new BABYLON.Vector3(10, -13, -10); newMeshes[0].scaling = new BABYLON.Vector3(0.0055, 0.0055, 0.0055); newMeshes[0].diffuseTexture = new BABYLON.Texture("gajah1_2.MainEleH_NORMALS.jpg", scene); scene.beginAnimation(skeletons[0], 1, 40, true, 1.0); });}thanks Quote Link to comment Share on other sites More sharing options...
gryff Posted December 3, 2015 Share Posted December 3, 2015 Hi vendoc, welcome to the forum my file can move but the move is so strange Unfortunately, that does not tell us very much. Is it a humanoid character - or something else? Can you provide a .blend file ? And what is the origin of the animation? Is this the kind of "strange" behaviour you are talking about? Weird Animation cheers, gryff Quote Link to comment Share on other sites More sharing options...
vendoc Posted December 13, 2015 Author Share Posted December 13, 2015 sorry sir gryff, im busy last week so i can watch this post just now.how can i upload the file? i want to uplad the file but i dont know it.so sorry, hope you can help me. thank you Quote Link to comment Share on other sites More sharing options...
vendoc Posted December 13, 2015 Author Share Posted December 13, 2015 here is babylon file and blender file. i upload it on my drive. https://drive.google.com/folderview?id=0B5Fu948qJrZELW16cmNVS0VJX2M&usp=sharing thanks for the help Quote Link to comment Share on other sites More sharing options...
gryff Posted December 13, 2015 Share Posted December 13, 2015 Morning vendoc Thanks for posting the .blend file - unfortunately it does not contain an armature. It is just a simple model of an animal. Here is my log for export : ========= Conversion from Blender to Babylon.js ========= Python World class constructor completed WARNING: No active camera has been assigned, or is not in a currently selected Blender layer processing begun of mesh: Cylinder WARNING: No materials have been assigned: num positions : 942 num normals : 942 num uvs : 0 num uvs2 : 0 num colors : 0 num indices : 5502========= Writing of scene file started ================== Writing of scene file completed ================== end of processing ========= Apart from warnings about no camera in scene and the mesh that is processed has no material - nothing about an armature. I think maybe you posted the wrong file cheers, gryff Quote Link to comment Share on other sites More sharing options...
vendoc Posted December 14, 2015 Author Share Posted December 14, 2015 thanks sir my rhino can move well now, it's actually a magic lol here is my komodo dragon still can't move well. i just upload it on my drive on komodo.zip . there is my blender file with armature and my babylon file.hope you can help sir gryff.thanks for your help 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.