Jump to content
  • Advertisement
Sign in to follow this  
Sindharta Tanuwijaya

Motion Capture File Format (with Quaternion)

This topic is 4493 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am making a program to edit motion capture data using Visual C++. I am using BVH files as input files, and I converted the rotation data from those BVH Files, which has ZXY Euler Angle rotation format, into quaternions. After editing, I would like to be able to save the output as BVH files too, but I am having trouble converting the quaternions back into ZXY Euler angles. I am currently using the source code from Dave Eberly's site to convert it back (Matrix3 class), but I think it isn't accurate enough. Or perhaps my implementation is not correct since I am using left handed coordinate system (DirectX), and that source code is using right handed one. I tried to convert my data into right handed system though, but it still didn't work. The way I did it was by transforming my LH matrix into RH matrix: mat._13 = - mat._13; mat._23 = - mat._23; mat._31 = - mat._31; mat._32 = - mat._32; with 1 is the first column/row index and then use Dave Eberly's code. and then convert RH Euler rotations into LH Euler rotations by negating X and Y components. Another option would be to use a motion capture file format with quaternion values inside that file format, but I don't know if such file format even exists. I am wondering if someone could point me to the right direction? Sindharta T.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!