Maya2OSG is a toolkit for exporting/importing Autodesk Maya scenes to/from any OpenSceneGraph (OSG) supported file format. It installs as a Maya plug-in and is available from the shelf. You can use your Maya scenes/models in real-time applications based on OSG and import your OSG assets to edit them in Maya and reexport to the real-time application.
It is released under the open source GNU GPL v3 license and available at:
http://maya2osg.sourceforge.net/
Users’ feedback is very much welcome. Enjoy!
The Maya to OSG exporter supports the following elements in Maya DAG:
* Polygonal geometry.
o Normals per vertex.
o Colors per vertex.
o Texture coordinates. Support for multiple UV sets.
o NURBS and subdivision surfaces are not currently supported. To export them, they must be previously converted to polygons.
* Scene hierarchy.
o Full scene hierarchy is preserved.
o Transform nodes.
o Node names.
* Light sources.
o Point lights.
o Directional lights.
o Spot lights.
o Ambient, area and volume lights are not currently supported.
* Materials/shading.
o Lambert, Blinn, Phong, PhongE, Anisotropic and HairTubeShader materials exported to OpenGL materials.
o GLSL shaders not currently supported, but planned to support in future releases.
* 2D file textures.
o Repeated textures are cached and shared in the scene graph.
o Maya 2D texture placement node is translated to OpenGL texture matrix.
o Repeat, clamp and mirror modes are supported.
o Procedural and/or 3D textures are not currently supported, they must be converted to 2D file textures before exporting the scene.
* Camera animations
o Maya AnimCurves or MotionPaths bound to cameras are exported to OSG AnimationPaths.
* Cameras
o Preliminary support added in release 0.3.0. Still not fully functional.
o Exports orthographic and perspective cameras to separate OSG files.
From release 0.3.0, Maya2OSG includes an OSG importer for Maya. It imports polygonal primitives in geometry nodes, keeping the full scene hierarchy and node naming.