You should search the archives, this has been asked before. There is no spec, it is a text dump of fields in OSG classes. To see what info is read and written, examine the source code in src/osgPlugins/osg.
The best way to create a plugin as you describe would be to build a scene graph, then call osgDB::writeNodeFile and let the existing code create the .osg file for you. I have created a similar plugin for PolyTrans. And I also believe someone has written such a plugin for Maya, so you might want to do a search of the Web or this mailing list before you undertake development. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of OSG Newbie Sent: Saturday, May 02, 2009 9:06 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] .osg file format specification? Hi, Where can I find for file specification for .osg file? I would like to write an exporter for Maya that exports mesh, texture, shader and animation in .osg format. Dose .osg support shader and animation export? Thank you. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11234#11234 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org