Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: DepthTest problem

  1. #1
    Intern Contributor
    Join Date
    Oct 2011

    DepthTest problem

    Im working on a 3D modelling program. Ive made a similar rotate gizmo as in 3DS Max. I disabled DepthTest so the gizmo is in front of all the other objects, but the 3 rings "hide each other" according to the order in which i draw them.

    Is there a way to "turn on" the DepthTest only for drawing the gizmo, without clearing the depth buffer or something as expensive.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Hmm, perhaps render the widget into an FBO with a RGBA color buffer. Then use that as a texture on a quad and render it on top of your scene (with blending/alpha test enabled).
    One additional depth clear to render an object that is in front of everything else in the scene should not be that expensive - hopefully

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts