|
From my testing when writing a FBX file LCLRotation.Set does nothing. Does it need some sort of activation command to make it work? Does it work with ANY rotation order command? Show me the lines of code that will export a NODE
so that its sits correctly rotated for euler 20,90,0 (x,y,z) . Thus an object facing left and rotated out of the screen 20 degrees.
This utilizes a rotation order of YZX or ZYX but NOT XYZ. For instance this:
KFbxVector4 lT, lR, lS;
KFbxXMatrix lGM;
lR.Set( 20.0,90.0,0.0);
lT.Set( 0,0,0);
lGM.SetT(lT );
lGM.SetR( lR );
lNode->LclTranslation.Set( lGM.GetT() );
lNode->RotationOrder.Set( eEULER_ZYX );
lNode->LclRotation.Set( lGM.GetR() );
lNode->LclScaling.Set( lGM.GetS() );
Will not output a node referencing a mesh at any angle. It wont show rotated in my code or in 3DSMAX 2012.
Whats wrong?
Author: normalblock8byteslong
|