| |
i n t r o d u c t i o n
Exporting a model from Maya as a pre-baked RIB (an archive file) can lead
to unexpected results unless care is taken to ensure the model:
- is located relative to the origin of the world coordinate system
- its transforms have been applied (Freeze Transforms), and
- its bounding box is of a specified dimension.
1. Positioning a model prior to baking it determines, amongst other things,
how it will rotate when it replaces a proxy object in another scene.
2. Using Maya's "Freeze Transforms" command ensures that it will accurately
replace the proxy object to which the pre-baked rib will later be "attached".
3. Checking a models bounding box before baking ensures it is the size you
are told it should be!
s t e p 1
The model shown in figure 1 is spherical and as such it has been moved to
the center of Maya's modeling plane so that it will rotate around its geometric
center. It is very important the models group node is selected in the
outliner window for steps 1, 2 and 4.
In the script window the MEL commands makeIdentity and xform
apply the models transformations (ie. Freeze Transforms) and report the size
of its bounding box. By repeately adjusting the scaleX, scaleY and scaleZ
values of the group node and re-applying the MEL commands you can see that
the model has achieved a bounding box dimenison that indicates it will later
fit with reasonable accuracey into a proxy cube 1 unit wide, 1 unit high and
1 unit deep.
The size values generated by the xform command represent the minX, minY,
minZ, maxX, maxY and maxZ coordinates of the models bounding box.
|
|

figure 1
|