Thanks Rudolf, changes now merged and submitted to SVN.

On Thu, Jun 12, 2008 at 5:00 PM, Wiedemann, Rudolf, OPS3
<[EMAIL PROTECTED]> wrote:
> 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
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to