[osg-users] how to disable zbuffer

David _ solid_davidian at hotmail.com
Wed Jul 9 01:56:21 PDT 2008


thanks, that worked for me

> Date: Tue, 8 Jul 2008 11:18:44 -0400
> From: jean-sebastien.guay at cm-labs.com
> To: osg-users at 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).
> 
> or
> 
>    stateSet->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS),
>        osg::StateAttribute::ON);
> 
> J-S
> -- 
> ______________________________________________________
> Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com
>                                 http://www.cm-labs.com/
>                          http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_________________________________________________________________
MSN Noticias
http://noticias.msn.es/comunidad.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080709/b08ce180/attachment-0003.htm>


More information about the osg-users mailing list