Re: [osg-users] how to disable zbuffer

2008-07-09 Thread David _
thanks, that worked for me > Date: Tue, 8 Jul 2008 11:18:44 -0400 > From: [EMAIL PROTECTED] > To: osg-users@lists.openscenegraph.org > Subject: Re: [osg-users] how to disable zbuffer > > Hi David, > > > You just need to disable GL_DEPTH_TEST for the desired object(s

Re: [osg-users] how to disable zbuffer

2008-07-08 Thread Paul Martz
> I think it is important to say that disabling GL_DEPTH_TEST > as Matthew said disables all writings to the depth buffer > whereas using GL_ALWAYS as depth function, as Jean-Sébastien > and Brian said, doesn't. Using one or the other way depends > on the specific need for passing the test. We

Re: [osg-users] how to disable zbuffer

2008-07-08 Thread David Spilling
If you just disable depth testing, or make the fragments always pass depth testing via ALWAYS, you still don't get the effect that the object is always visible, do you? It presumably will depend on its position in the scenegraph and the relative order of drawing. That's why HUDs are often done in p

Re: [osg-users] how to disable zbuffer

2008-07-08 Thread Alberto Luaces
Hello, El Martes 08 Julio 2008ES 17:18:44 Jean-Sébastien Guay escribió: > > You just need to disable GL_DEPTH_TEST for the desired object(s). > > or > >    stateSet->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS), >        osg::StateAttribute::ON); I think it is important to say that dis

Re: [osg-users] how to disable zbuffer

2008-07-08 Thread Jean-Sébastien Guay
Hi David, You just need to disable GL_DEPTH_TEST for the desired object(s). or stateSet->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS), osg::StateAttribute::ON); J-S -- __ Jean-Sebastien Guay[EMAIL PROTECTED]

Re: [osg-users] how to disable zbuffer

2008-07-08 Thread Brian R Hill
Look at osg::Depth and osg::Depth::ALWAYS Brian [EMAIL PROTECTED] wrote: - To: OpenSceneGraph Users From: "Fuesz, Matthew" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] Date: 07/08/2008 11:11AM Subject: Re: [osg-users] how to disable zbuffer David,

Re: [osg-users] how to disable zbuffer

2008-07-08 Thread Fuesz, Matthew
TECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David _ Sent: Tuesday, July 08, 2008 11:00 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] how to disable zbuffer hi i would like to draw some objects without doing the z

[osg-users] how to disable zbuffer

2008-07-08 Thread David _
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?? __