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: Hidden surface removal not working properly

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2007
    Posts
    8

    Hidden surface removal not working properly

    I'm coding a terrain generator in python using opengl, but opengl's depth test isn't working right. It's not removing surfaces that should be hidden, but others are randomly disappearing as I move around the 3d world. I have this code in my initialization:
    glEnable(GL_DEPTH_TEST)
    glDepthFunc(GL_LESS)
    glClearDepth(1.0)

    can anyone tell me what might be wrong?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,575

    Re: Hidden surface removal not working properly


  3. #3
    Junior Member Newbie
    Join Date
    Nov 2007
    Posts
    8

    Re: Hidden surface removal not working properly

    wow thanx it works great now

Posting Permissions

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