[osg-users] how to disable zbuffer
Brian R Hill
bhill22 at csc.com
Tue Jul 8 08:20:11 PDT 2008
Look at osg::Depth and osg::Depth::ALWAYS
Brian
-----osg-users-bounces at lists.openscenegraph.org wrote: -----
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
From: "Fuesz, Matthew" <matthew.fuesz at lmco.com>
Sent by: osg-users-bounces at lists.openscenegraph.org
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
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
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list