Results 1 to 2 of 2

Thread: clipping question/ display errors

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    canada
    Posts
    8

    clipping question/ display errors

    Hi,
    I was just wondering if anyone does know what causes clipping errors to begin to occur from a distance and up close they go away.
    sorry i dont have a picture but the distortion occurs when using lazy or easier methods for scenes. rather than clipping the edge to match the intersection, the processor does not clip straight. it shows as a wave pattern whis is more prominant the farther you move away from it.
    it most happens when i make a water tile and have land cut thru. I like to know if there is a function to fine tune this, or do i have to resort to manual clipping. what is wierd is that it does not appear all the time but is more opt to happen when normals are similar for the intersecting pieces. I know it happens on alot a cards. a generic 8mb. my previous tnt2/ geforce2 and now my gforce 4 also.
    any info would be great. Thanks

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2002
    Location
    St. Louis, MO USA
    Posts
    177

    Re: clipping question/ display errors

    This is called "z fighting". As you get further away from something, the depth buffer becomes less and less accurate, causing objects which are behind to be drawn partially in front. To fix this, you need to make your near clip plane bigger (greater than 1 for sure - possibly 10 or more). The higher the value of (far/near) is, the more problems you will have with z fighting. The near and far clip panes are set up in your call to gluPerspective or glFrustum.

Similar Threads

  1. Using near and far clipping to display layers of an object
    By zoodinger in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-07-2015, 08:25 AM
  2. Expanding graphics caused clipping errors?
    By urchinsub in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-22-2010, 06:24 AM
  3. Clipping issue with a display list
    By Ryan C in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 01-05-2008, 09:23 AM
  4. Question about clipping
    By urquidio in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-27-2007, 08:50 AM
  5. Clipping question
    By eckiller in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 03-28-2000, 11:36 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