Kingmangfx Posted December 21, 2017 Share Posted December 21, 2017 New to babylon, learning using Blender 2.79 to babylon 3. Using the glTF 2 export / import workflows from blender to Babylon does not load in Cameras or their animations, instead the importer(glTF 2 loader ) creates a mesh for the camera data with animation. I thought, to overcome the limitation, to determine a method to extract the animations and hopefully "clone" them to the camera, but I am hoping someone has had some experience with this and may share the optimal method to do so. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 22, 2017 Share Posted December 22, 2017 Hi @Kingmangfx, welcome to the forum. Sorry for the slow replies. I don't have any answers, yet, but I'm going to bump and feature this topic. I'm not sure who is/are the custodian(s) for the Blender gITF 2 importer. Be sure to ping me in a couple of days... if nobody smarter than I... has replied by then. Meantime, if you are a pro at searching for github commits with 'gItf' in their title, perhaps we can determine who has done work on it. https://github.com/BabylonJS/Babylon.js/blob/master/loaders/src/glTF/2.0/babylon.glTFLoader.ts That url is for importer, though. I don't know WHO is working on the Blender-side. But I think this is an importer thing. Just possibly, Blender treats cameras more like a mesh... than BJS does. Thus, we cannot directly transfer Blender camera.animations... onto BJS camera.animations. Instead, the importer provides a mesh that you should parent your camera-to, at least during the animation-playing. After camera.parent = mesh, then play the mesh animation, and the camera should go along for the ride... maybe (if initially aimed/oriented properly). (you might wish to set camParentMesh.visibility = 0) I don't think our cameras can "scale", so don't try animating that. But animation that scales a (invisible?) mesh camera.parent... should be no problem. BJS cameras likely ignore any attempts by a parent... to hand-down their .scaling. Just speculation on my part. (sorry). This topic needed a bump'n'feature, so I might as well yack aimlessly, too. Talk soon, stay tuned. Kingmangfx 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 22, 2017 Share Posted December 22, 2017 Hello our gltf importer does not load camera nor their animations I would suggest using babylon exporter if you want a complete scene support from blender: http://doc.babylonjs.com/resources/blender Quote Link to comment Share on other sites More sharing options...
Kingmangfx Posted December 24, 2017 Author Share Posted December 24, 2017 The current blender-to-Babylon exporter has serious issues with camera keyframes: https://github.com/BabylonJS/Exporters/issues/50 so kind of looking for solutions - parenting is my next trial. 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.