babbleon Posted April 5, 2018 Share Posted April 5, 2018 Hello, To help anyone else with issues with animation parenting & pivot in Blender (2.9) & exporter 5.5.0, here goes. Playground illustrating problem: https://playground.babylonjs.com/#SYAFM9 & .blend file attached. Ensure that animation name is named as: objectname-Action, eg. Cube.001-Action Create an empty at the location you want the child to pivot Move the child object to the location of the empty In the parenting, make sure the empty goes between parent and child objects... so, parent > empty > child Move the empty to 0,0,0 This may show it better: There may be a better way, if there is - please let me know. parented.blend Wingnut, GameMonetize and V!nc3r 3 Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted April 5, 2018 Share Posted April 5, 2018 Another thing in the todo list Quote Link to comment Share on other sites More sharing options...
babbleon Posted April 5, 2018 Author Share Posted April 5, 2018 I doubt this is the 'correct' way to do, but I think the issue is with Blender, not the exporter. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 6, 2018 Share Posted April 6, 2018 Looked at your .blend. Not exactly the same as your GIF. One thing you might try, not using an empty, is setting the origin of the child to that of the parent. It fixes things for me to have all children having the same origin as the parent, though I am using an armature. Maybe handles this too. Select the parent Move parent to 0,0,0 (not really required, but recommended, since vertices will be smaller so .babylon smaller) Move cursor to selected {Shift-S, then pick "Cursor to Selected"} Select a child, and move origin of all vertices {Shift-Ctrl-Alt-C, then pick "Origin to 3D Cursor"} Parent child to parent 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.