Okay, so I experimented a bit more. If I add GL_BLEND to the .osg file, it still doesn't affect which bin the associated geometry goes into. Nothing gets sorted, so it looks like even the transparent geometry goes into the opaque bin.
What's the official mechanism that OSG uses to decide what goes into the opaque bin and what goes into the transparent bin? - Terry
Message: 27 Date: Thu, 9 Nov 2006 09:56:37 +0000 From: "Robert Osfield" <[EMAIL PROTECTED]> Subject: Re: [osg-users] setting bins when loading To: "osg users" <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/
