Look at osg::Depth and osg::Depth::ALWAYS Brian
[EMAIL PROTECTED] wrote: ----- To: OpenSceneGraph Users <[email protected]> From: "Fuesz, Matthew" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] Date: 07/08/2008 11:11AM Subject: Re: [osg-users] how to disable zbuffer David, You just need to disable GL_DEPTH_TEST for the desired object(s). e.g.: myNode->getOrCreateStateSet()->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); Matthew W. Fuesz Software Engineer Asc. Lockheed Martin STS 1210 Massillon Road Akron , OH 44315 [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David _ Sent: Tuesday, July 08, 2008 11:00 AM To: [email protected] Subject: [osg-users] how to disable zbuffer hi i would like to draw some objects without doing the zbuffer check, so it´s always visible no matter if it´s something between the object and the camera i guess it has something to do with the stateset but i´m a little lost here any ideas?? Todo ruedas: información práctica y todo el glamour del mundo del motor. MSN Estilo y Tendencias _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

