Sign in to follow this  
orange_peel

Quaternions for mirrored animation

Recommended Posts

I have an animation system based on quaternions. Is there a simple way to mirror a quaternion around an axis (eg: the y axis so if my character faces forwards along y it will be mirrored left/right)? Obviusly the translation of each joint will have to be mirrored too.

Share this post


Link to post
Share on other sites
You mirror through a plane, so I assume you want to mirror the rotation through the plane that has the axis in question as its normal.

To mirror the rotation, you just negate the value corresponding to the axis in question (Y axis if you're Z-up in this case), and you also negate the W value.

However, you'll probably find that you need to mirror various positions, too, unless your animations are purely angular based. Once you do that, the mesh skinned to the animation keys might start looking bad. If everything's fully symmetric, it will likely work, though.

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