Results 1 to 4 of 4

Thread: Problem of depth buffer

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Bankkok, Thailand
    Posts
    9

    Problem of depth buffer

    I have a proble to draw complex object
    the surface is incorrect z buffer in opengl.
    Have any solution for fix it?.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Problem of depth buffer

    You must give us more information that just saying something is wrong. It can be a whole lot of stuff. Did you ask for a depthbuffer? Did you enable it? What depthfunction do you use? What values did you pass as near and far clipping planes?

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Bankkok, Thailand
    Posts
    9

    Re: Problem of depth buffer

    // draw Model;

    glDepthMask(GL_FALSE);
    glDepthFunc(GL_EQUAL);

    glEnable(GL_BLEND);
    glBlendFunc(GL_ZERO, GL_SRC_COLOR);
    // draw Model;
    glDisable(GL_BLEND);

    glDepthMask(GL_TRUE);
    glDepthFunc(GL_LESS);

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Problem of depth buffer

    What is suppose to happen in your program, and what is happening now? I still don't know whats wrong and therefore can't help much.

Similar Threads

  1. problem with depth buffer while using the FBO
    By ehsan2004 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-30-2010, 01:50 AM
  2. Depth buffer problem
    By egydev in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-19-2010, 06:26 AM
  3. depth buffer problem?
    By in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 02-23-2004, 10:00 PM
  4. depth buffer problem
    By deans in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-15-2002, 03:58 AM
  5. Replies: 1
    Last Post: 11-03-2001, 12:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean