Bake Animation Constarints for Blender Importer [Feature Request]

Hi All!



@Kaelthas ,at present, blender animation is imported incorrectly with IK-constarints. Can you bake animation in your blender importer when animation is imported?



I recently helped MilkShape developer and i did a video:

http://www.youtube.com/watch?v=WH0t2I5EaRQ&feature=plcp



In blender python exporter it looks like:
[java]
bpy.ops.nla.bake(frame_start=1, frame_end=25, step=1, only_selected=False, clear_constraints=True, bake_types={'POSE', 'OBJECT'})[/java]

Thanks.

You can easily bake in blender before exporting. As only the IK constraints are saved in the file Kaelthas has to re-implement all the IK code from blender for this. He already does that partially but not all IK types are supported yet. Its not that easy as he cannot use the python scripting in blender to do that (as its a standalone loader). Thats why baking in the editor is always better.

2 Likes

@normen is right.

Unfortunately the IK constraint is not the easy one to implement.

I hope to do it as soon as possible, but I am now focused on bugfixing in currently available features.

So for now you will need to use blender baking in order for the model to load properly.

4 Likes

Supporting constraints essentially requires us to implement all of the Blender constraint types in jME3, then bake into animations on the jME3 side. Its a lot of unnecessary work given that you can bake it in Blender with the click of a button.

1 Like

Yeah, I agree. I think it’s really not necessary.