|
|
|
Tell us what you think of the site.
|
Autodesk Media & Entertainment User Community
|
Autodesk® 3ds Max®
|
|
Autodesk® Maya®
|
|
Autodesk® Softimage®
|
|
Autodesk® MotionBuilder®
|
|
Autodesk® Mudbox™
|
|
Autodesk® ImageModeler™
|
|
Autodesk® Sketchbook® Pro
|
|
Autodesk® Smoke on Mac®
|
| eINHERIT_RrSs vs eINHERIT_RSrs vs eINHERIT_Rrs
|
|
|
Hi :)
Can anyone explain the differences between these modes to me? I have all of the component data (Lcl*, PreRotation, PostRotation, Geometric*, etc), but I have two different files with two difference inheritance types, and my transformation matrices only appear correctly on one.
Thanks,
Nate
|
|
|
|
These are Transformation inherit types, to define how to combine parent and child’s local transform in different order. (Uppercase “R” means rotate of parent, lowercase “r” means rotate of child, etc.)
For example, eINHERIT_RrSs means sth like this:
ParentRotate*ChildRotate*ParentScale*ChildScale
Jiayang Xu
Maya Data Platform
Autodesk
|
|
|
|
That’s what I was afraid of :) Thanks for the info. I think I remember reading something about a function that would convert between this types. Is that still in the pipeline?
|
|
|
|
One more question...below is a snippet included in the SDK Programmer’s Guide. Which inheritance mode does this apply to? It seems for some modes, a child’s transformation matrix must be affected by changes to an ancestor’s properties. Any code snippets from the GetGlobalFromDefaultTake() or similar functions would be greatly appreciated.
Thanks,
Nate
---------------------------------------------------------
Here is how FBX SDK computes the transformation matrix for a node:
Transform = T * Roff * Rp * Rpre * R * Rpost * Rp-1 * Soff * Sp * S * Sp-1
Transform Transformation matrix (4 X 4)
T Translation
Roff Rotation offset
Rp Rotation pivot
Rpre Pre-rotation
R Rotation
Rpost Post-rotation
Rp-1 Inverse of the rotation pivot
Soff Scaling offset
Sp Scaling pivot
S Scaling
Sp-1 Inverse of the scaling pivot
Notes:
* Computations are performed from left to right.
* The effect of the formula is that any given vector is first translated, then rotated, then scaled.
* The R matrix takes into account the rotation order. Because of the mathematical properties of the matrices, R is the result of one of the possible combinations of Ry, Ry and Rz (each being matrices also). For example, for the default rotation order of XYZ, R = Rx * Ry * Rz
|
|
|
|
|
Oh, hi, this snippet is to computer local transform of ONE node. (The Rp there is Rotation pivot, not rotate of parent node).
Inheritance mode only have effect in nodes hierarchy.
Author: Jiayang Xu
|
| Replied: 15 November 2009 08:48 PM
|
|
|
|
|
| Settings
| Choose Theme color:
|
|
|
|
|
|
|
|
|