View Full Version : Need Help Exporting Rotations...
PiXeL_MoNKeY 06-12-2007, 11:53 PM I am trying to write a script to export Max data to a Combustion CWS. The problem I am having is I tried using quatToEuler, but no matter what I order I chose I get flipping (based on one object in my test scene). Also, since Combustion uses Y as up and Z as depth I am swaping the Y and Z axis. Should I be doing this before or after converting the quat to a euler angle? Also, I read that I can use getEulerQuatAngleRatio to get the flipping information. However, how do I use the resulting float to fix the flip? Any help would be greatly appreciated.
-Eric
|
|
You should always do any conversions before converting to an Euler. Since Euler angles have all the gimble problems it is the last thing that you want to do if possible. Best to do all your conversions at the matrix level then convert those to the rotations that you need.
PiXeL_MoNKeY
06-13-2007, 05:29 PM
Thanks Paul. I will see if that will help. Now if I can just find out WTH the getEulerQuatAngleRatio is for and how to use it.
-Eric
CGTalk Moderation
06-13-2007, 05:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.