alexeyd/blender2cal3d — Issue #13: Action export is broken
Author: alexeyd
Created: 2012-01-23 18:25:01+00:00
State: open

I looked into animation glitches and here're my findings:

- In blender bones might not be connected tightly (i.e. head of a child is not in the same place with tail of a parent), in this case we can't do 1-1 mapping between blender bones and cal3d bones, helper bones need to be created to preserve real bones translations - this is important when it comes to animation

- If I got it right blender assumes that rotation keyframes are also applied to translations.
Let M be original orientation (3x3 matrix),
T - original translation (vector),
R - rotation in a keyframe in the bonespace (3x3 matrix)
v - affected vertex (vector)
Exporter assumes that resulting transformation will be MRv + T and that worked finely with multiple cal3d bones per blender bone. In case we do 1-1 mapping, the transformation has to be MRv + RT.

I will make these changes and see if it fixes things.