Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Rendering in Framebuffer does not effect while GL_DEPTH_TEST enabled

  1. #1
    Junior Member Newbie
    Join Date
    May 2013
    Posts
    12

    Rendering in Framebuffer does not effect while GL_DEPTH_TEST enabled

    I am trying to render everything in a frame buffer.

    So i made a framebuffer with depth texture and color texture attached as shown here : http://www.opengl.org/wiki/Framebuff..._Depth_texture

    But nothing is rendered if GL_DEPTH_TEST is enabled. What am i doing wrong?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    786
    Do you clear the depth buffer (attachment) before rendering?

  3. #3
    Junior Member Newbie
    Join Date
    May 2013
    Posts
    12
    Thanks it works

Tags for this Thread

Posting Permissions

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