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
> 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
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
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
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]
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,
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
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??
__
8 matches
Mail list logo