Results 1 to 4 of 4

Thread: Looks like GL_DEPTH_TEST is failing ?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Bolton, United Kingdom
    Posts
    26

    Looks like GL_DEPTH_TEST is failing ?

    Hi,
    I'm working on a fairly large project and I've recently discovered that on some graphics cards I end up with object faces missing ... my code was working fine but I've inadvertantly altered something that has made my code specific to my development machine's graphics card ...
    I enable GL_DEPTH_TEST in the initialization of the program ... and always have done ...

    Please help ...

    Thanks

    Andrew

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: Looks like GL_DEPTH_TEST is failing ?

    Search all your code for calls to
    glDepthMask
    glColorMask <- this should be true for proper operation
    glEnable(*_TEST); <- to find alpha/stencil/depth tests
    glDisable(*_TEST);

    Maybe stenciling as well ...

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Bolton, United Kingdom
    Posts
    26

    Re: Looks like GL_DEPTH_TEST is failing ?

    Hi,
    I found out what's causing my problem ... I originally used a single light source ... and that works on all cards ... then I introduced a further 3 lights to get the lighting a bit more uniform ... looked good on my system but unbeknown to me it no longer looked right on other systems ... Now, I was using a relatively old NVidia driver so I upgraded and low and behold my system now manifests the problem ... with more than one light source, I find that Quad faces, depending on viewpoint, are not drawn at all ... very odd ... ?

    Andrew :0(

  4. #4
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Looks like GL_DEPTH_TEST is failing ?

    This would be a serious bug if true. It is very strange that this shows on several cards. I suspect some programming error is causing this.

Similar Threads

  1. glEnable(GL_DEPTH_TEST) causes flickering
    By imported_rocketmagnet in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 12-17-2018, 04:27 PM
  2. GL_DEPTH_TEST not working?
    By someoney in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-24-2010, 03:40 PM
  3. glEnable(GL_ALPHA_TEST | GL_DEPTH_TEST)
    By knackered in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-07-2010, 06:05 AM
  4. GL_DEPTH_TEST -> What am I doing wrong?
    By Aaron McConnell in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-15-2008, 12:50 PM
  5. GL_DEPTH_TEST question
    By Alessandro_dup1 in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-12-2001, 05:45 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