Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / ParityEven or ParityOdd?
  RSS 2.0 ATOM  

ParityEven or ParityOdd?
Rate this thread
 
49684
 
Permlink of this thread  
avatar
  • Location: Midvale, UT
  • Total Posts: 144
  • Joined: 25 March 2010 10:49 AM

Howdy,

OK, I know my axis system is left handed with the Y axis pointing up, but what is the parity?

Here is a screen shot of a camera’s axis:
Parity.jpg

You can see that the Z axis points in the same direction as the camera’s view direction.
So which parity is that?

Adios,
Cactus Dan



Replies: 1
/userdata/avatar/65df9nc33.JPG

I noticed that if you zero out the rotations of the camera in Motion Builder, it looks down the x axis!  So it doesn’t actually match Maya Y up quite....

Author: SimonWakley

Replied: 04 December 2010 06:09 AM  
avatar
  • TravF
  • Posted: 21 November 2010 05:42 AM

That matches eMayaYUp/eOpenGL, so I would guess odd.
Most of the pre-defined systems in kfbxaxissystem.h are odd anyway.

If you’re writing out a FBX, you can simply use of the pre-defined systems.
No need to set each property.



Replies: 0
avatar

Howdy,

Well, I’m not exporting to FBX, I’m trying to import FBX and get the scene’s axis system converted, but the FBX animation still comes in mirrored compared to the View Scene example application (on the left):
ImportFlipped.jpg

If I ignore the axis system, and just import the file as is, it’s no different than if I try to convert the axis system.

The code I’m using is taken from the View Scene example:

// Convert Axis System to what is used in this example, if needed
KFbxAxisSystem SceneAxisSystem pScene->GetGlobalSettings().GetAxisSystem()
KFbxAxisSystem OurAxisSystem(KFbxAxisSystem
::YAxisKFbxAxisSystem::ParityOddKFbxAxisSystem::LeftHanded)
if( SceneAxisSystem != OurAxisSystem )
{
     OurAxisSystem
.ConvertScene(pScene);
}

... the only change I made in the code was switching the last parameter of OurAxisSystem() to “LeftHanded”.

So, what does ConvertScene() actually do? It doesn’t seem to do anything.

Adios,
Cactus Dan



Replies: 1
/userdata/avatar/vx3501hqr_small.jpg

HI, Cactus, it is a known limitation that FBX SDK can not convert from Right Handed to Left Handed properly. So you need to apply it by yourself.
Following links could be helpful:
http://area.autodesk.com/forum/autodesk-fbx/fbx-sdk/axis-system-convertion-bug-/
http://area.autodesk.com/forum/autodesk-fbx/fbx-sdk/kfbxaxissystem-problem/

This is already logged as a suggestion, but not scheduled yet.

Author: Jiayang Xu

Replied: 23 November 2010 05:57 PM  
avatar

Howdy,

Thanks Jiayang, for the links, but the link to the open source in that one post needed privileges that I don’t have.

But, I managed to do a google search on handedness conversion and wrote my own conversion function.

Now, I have it importing correctly:
ImportNormal.jpg

Adios,
Cactus Dan



Replies: 0