Hello OSG Community

I am currently playing with opacity/transparency capabilities of geodes in a 
model.
In that way, i use:

material = (osg::Material *) 
Geode->getStateSet()->getAttribute(osg::StateAttribute::MATERIAL);
Geode->getStateSet()->setMode( GL_BLEND, osg::StateAttribute::ON );
material->setTransparency(osg::Material::FRONT, 1.-opacity);
Geode->getStateSet()->setAttributeAndModes(material, 
osg::StateAttribute::OVERRIDE);

It works, the geode becomes transparent.

But is there a way to see objects behind this geode ?
I mean : if i use Geode->setNodeMask(0x000000); the geode is invisible and I 
can see what is behind, but not with the transparency effect.

Please, do you have an idea how managing the code if i want to see what is 
behind a transparent object ?


Cheers,
Mathieu

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33972#33972





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to