Hi Simon, On Fri, Jul 9, 2010 at 7:38 AM, <[email protected]> wrote: > > It seems to work fine for masking the bits off for each colour channel > separately. However, when I disable all the channels, the "phantom" object > does not appear to occlude objects behind it. >
You will need to ensure that the "phantom" objects are rendered before the objects they are supposed to occlude. You can do this by either giving the "phantom" objects a very low render bin order, or the real objects a very high render bin order. The following sample shows how to give an osg::StateSet a very low draw order: stateset->setRenderBinDetails( -1000, "RenderBin", osg::StateSet::USE_RENDERBIN_DETAILS ); Cheers, Farshid
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

