2
$\begingroup$

I keyframed two poses and expected the arm to move upward (shortest way) like:

enter image description here

But what actually happens is that the lower arm moves the other way around to reach the second pose.

enter image description here

Is the interpolated movement always clockwise? Can the direction be influenced, or could there be some other reason for this behaviour?

I use quaternions if this matters.

$\endgroup$
2
$\begingroup$

The issue you are having looks like it's related to the way quaternion rotations work.

A bone in the rest position would normally have values of 1,0,0,0, a W value of 0.001 will leave the bone in roughly the same place, yet a W value of 0.0 will flip the bone in the opposite direction.

I'm pretty sure this only happens using quaternions when all 4 values are 0.0.

So it would appear that your animation curves manage to travel from positive to negative values to cause the flipping.

An easy solution may be to add a pose in between to define a pose between the two extreme poses, instead of having it take the shortest path.

$\endgroup$
  • $\begingroup$ Thanks, this was the closest thing, I just wanted to double check whether I mainpulated the W value, but actually I had set the rotation to euler (probably to check another issue). $\endgroup$ – stacker Feb 18 '14 at 17:40
0
$\begingroup$

I believe it depends on which direction you actually rotate it in in the 3D view. Try remaking it, making sure to rotate it in the same direction you want it to rotate during the animation (and not to rotate it more than 180 degrees).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.