[osg-users] Keep Geometry always visible withtout occlusions
Jannik Heller
scrawl at baseoftrash.de
Wed Jul 6 14:30:17 PDT 2016
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
More information about the osg-users
mailing list