yes, i've used the '--stencil' option, and no, it doesn't clear the buffer.
so, it's true, i didn't think of the redundant clear operations in camera to implement this. so as you're implying that's preferred, here's the same code, re-factored to use the Camera clear settings, and not the ClearNode clear settings. if you're rejecting this idea based on some other principle, please explain further.
bob
osgviewer.cpp
Description: Binary data
On Aug 25, 2008, at 8:15 AM, Robert Osfield wrote:
Hi Bob, This submission looks like you aren't aware of the DisplaySettings command line parsing that is done in the osgViewer::Viewer(ArgumentParser&) constructor. To get the command line docs on this simple do: osgviewer --help | grep stencil And you'll see:--stencil Request a stencil buffer visualThis hints to the Viewer to create a frame buffer with a stencil buffer. You also note that the osg::Camera has a range of stencil buffer clear methods, so using a ClearNode is not required - you can simple set what is required via the viewers Camera(s). Robert. On Mon, Aug 18, 2008 at 3:26 PM, Bob Kuehne <[EMAIL PROTECTED]> wrote:added option to enable stencil clear in osgviewer. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
