Thanks for making this change, Rudi. -Paul
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wiedemann, Rudolf, OPS3 > Sent: Thursday, June 12, 2008 10:01 AM > To: OpenSceneGraph Submissions > Subject: [osg-submissions] Reading/ writing OpenFlight material names > > Hi Robert, > > in the OpenFlight format materials can have editable names. > In the OSG OpenFlight plugin these names are ignored when > reading, and empty strings are written. > > As we need these names in the OSG scene graph by our > application, I changed the plugin code, so the names are now > stored in class "osg::Material" (derived from "osg::Object") by > material->setName(); > (see "PaletteRecords.cpp, line 195) when reading the file, > and written to file by > dos.writeString( m.Material->getName(), 12 ); (see > MaterialPaletteManager.cpp, line 80). > > As these names otherwise get lost when reading an OpenFlight > file and writing it again e.g. by > osgconv example.flt converted_example.flt these changes > make the plugin more complete. > > The changes were made to OSG revision 8425, and were tested by > osgconv example.flt converted_example.flt comparing the > material palettes of both files inside Multigen Creator. > > Regards > Rudi > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
