blender-to-gmstudio / blender-to-smf

Import-Export of Blender model from/to SMF model format
MIT License
11 stars 2 forks source link

Export the complete scene hierarchy and all animation data with it #37

Open bartteunis opened 2 years ago

bartteunis commented 2 years ago

Extend the idea of the armature export and include all instances in the Blender scene/selection that have animation data (e.g. also a static mesh object that moves and rotates, scale won't work because of DQs being used). This should allow the export of fairly complex scenes to a single SMF model file.

Related issues:

17

21

22

bartteunis commented 2 years ago

Note that this can already be done with the current exporter in a somewhat complicated way by disconnecting bones and moving them relative to their parent bone. SMF allows - or perhaps rather, "doesn't prevent" - this for detached nodes. So adding this would mainly be a feature that greatly improves the ease of use of the exporter when working with more complex animations in Blender (moving instances, several hierarchies, ...)

bartteunis commented 2 years ago

A couple of interesting reads releated to this issue:

In short: Blender also uses a parent inverse matrix. This is set at the time of parenting the child to the parent and has to be taken into account!