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 2 of 2

Thread: Drawing Problem

  1. #1
    Intern Newbie
    Join Date
    Oct 2004
    Posts
    30

    Drawing Problem

    Hi,

    I've got a problem, i've made a simple program to draw a height map. it's working well but i don't know why, i can view thought the montains of the map in some camera directions.

    It seem that the montains draw after are display in front of the montains before.. it's very strange.. how can i fix this problem ?

    Thanks a lot

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    586

    Re: Drawing Problem

    sounds like you don't have depth testing enabled.

    add this before your render:
    glEnable(GL_DEPTH_TEST);

    if that doesn't do it, could you post a screen shot?

Posting Permissions

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