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 <http://estilo.es.msn.com/>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

