[osg-users] Clear depth buffer

Alberto Luaces aluaces at udc.es
Fri Jul 27 01:32:38 PDT 2007


El Viernes 27 Julio 2007, Pecoraro, Alexander N escribió:
>  I want to show up right in front of the viewer and always be
> on top

In addition what Nelson Cysneros said, you can also use the same technique as 
shown in the osgHUD example:

    // only clear the depth buffer
    camera->setClearMask(GL_DEPTH_BUFFER_BIT);

Alberto


More information about the osg-users mailing list