Re: [osg-users] Can OSG store materials externally for an object?

2012-10-25 Thread Robert Osfield
Hi Michael,

On 20 October 2012 09:59, michael kapelko  wrote:
> Does OSG have some sort of material files that can be applied to the same 
> mesh?
> So far I've looked into osgt files and they store both mesh and
> material inside one file.

The OSG doesn't have a specific "material" file, and there isn't a
formal "material" concept in the OSG.  The closest equivilant is the
OSG mapping to OpenGL state that is encapsulated on osg::StateSet.  I
guess you could write an an osg::StateSet to ascii file and read this
back in using the osgDB::writeObjectFile(..) and
osgDB::readObjectFile(..) functions.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Can OSG store materials externally for an object?

2012-10-20 Thread michael kapelko
Hi.
Does OSG have some sort of material files that can be applied to the same mesh?
So far I've looked into osgt files and they store both mesh and
material inside one file.
Thanks.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org