HI Terry,

If you want to automatically modify a scene graph at load then the
best thing to do is write a osgDB::Registry::ReadCallback to override
the normal load calls.  Have a look at the callback interface in
include/osgDB/Registry and what to do should become clear.

Bascially it'll be your resposibility to do the load, so just call the
registry readImplementation to load the model then traverse the
resulting model changing what you want to change, then return the
final modified model.

Robert.

On 11/9/06, Terry Welsh <[EMAIL PROTECTED]> wrote:
When loading model files, it would be nice if OSG could detect if a
node contains any type of transparency (in vertex colors or textures).
 If so, it could turn on GL_BLEND and put the geometry in the correct
bin.  Is there functionality like this anywhere already?  Perhaps in
some specific loaders?  It does not appear to happen when I load a
.osg file.
--
Terry Welsh - mogumbo 'at' gmail.com
www.reallyslick.com  |  www.mogumbo.com
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to