Hi,

Indeed, the depth attribute is the way to go. You also need to set a high 
RenderBin number to make sure that the object you don't want occluded is always 
rendered last:


Code:

mygeometry->getOrCreateStateSet()->setAttributeAndModes(new 
osg::Depth(osg::Depth::ALWAYS), osg::StateAttribute::ON);
mygeometry->getOrCreateStateSet()->setRenderBinDetails(1000, "RenderBin");




Cheers,
Jannik

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





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

Reply via email to