Sign in to follow this  
eudora

Averaging of rotation matrix?

Recommended Posts

Say I have a child who has 2 parents. Both parent's have their own rotation matrix. The child knows those rotation matrix and the weightage both parents have on him... how should I obtain the child's rotation matrix?

Share this post


Link to post
Share on other sites
Quote:
Original post by eudora
Say I have a child who has 2 parents. Both parent's have their own rotation matrix. The child knows those rotation matrix and the weightage both parents have on him... how should I obtain the child's rotation matrix?
Perhaps you're looking for slerp (spherical linear interpolation). Given appropriate a priori knowledge about the parent matrices, lerp (linear interpolation) may also be an option.

Share this post


Link to post
Share on other sites
You can just average the matrices, and then re-normalize it to the amount of scale that the matrices have. Google for "orthonormalize matrix" and you'll probably get hits.

An alternative is to turn the matrices into quaternions, interpolating the quaternions, and then turning back to matrix. That's more robust if the parents have rotations that are almost 180 degrees opposite.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this