[osg-users] how to disable zbuffer

Fuesz, Matthew matthew.fuesz at lmco.com
Tue Jul 8 08:11:49 PDT 2008


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

matthew.fuesz at lmco.com

 

________________________________

From: osg-users-bounces at lists.openscenegraph.org [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of David _
Sent: Tuesday, July 08, 2008 11:00 AM
To: osg-users at lists.openscenegraph.org
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/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080708/2eee06c9/attachment-0003.htm>


More information about the osg-users mailing list