Menu

Scene_hierarchy

Javier Taibo
Attachments
MayaTransform.jpg (50280 bytes)

Maya2OSG conserves the full scene hierarchy of Maya DAG when exporting to OSG. Node names are also kept intact.

Maya transform nodes are converted to

osg::MatrixTransform

nodes. The rest of Maya groups are converted to

osg::Group

nodes.

In Maya, Emitters are a special kind of Transform nodes. They are exported as a regular osg::Transform with the emitter under it.

All features of Maya Transforms are correctly exported for static (not animated) Transforms.

This can be checked exporting the file

test_trans.ma

in the

tests

directory.

Animated Transforms

Animations connected to transform nodes (whether AnimCurves or MotionPaths) are exported to OSG AnimationPathCallbacks.

However, some features are not supported, because the class

osg::AnimationPathCallback

is based on

osg::AnimationPath::ControlPoint

objects that store only position, rotation and scale about the origin.

Maya Transforms will not be correctly exported if they apply a shear or move the scale or rotate pivot point.

To see an example, export the file

test_trans_anim.ma

in the

tests

directory and see the results (you can use the Preview buttons on the shelf).

This behaviour could be solved creating a more complex hierarchy to move the pivot point to the origin and then restoring it after rotating and scaling. Maybe this will be implemented in later versions of Maya2OSG.


Related

Wiki: Main_Page

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.