Results 1 to 2 of 2

Thread: Surface Removal Problems

  1. #1

    Surface Removal Problems

    I have an object I've drawn and I have Depth Buffering turned on. I can rotate my object around, etc. When I was using an orthogonal projection, everything worked fine. The correct surfaces were showing no matter how I rotated the object. However, I changed to a Perspective projection and now I'm seeing surfaces that I didn't before. It's like they're bleeding through. And when I rotate, different ones show up on top. I didn't change anything but the projection. Does anyone have any idea what's going???

  2. #2

    Re: Surface Removal Problems

    Well, I solved my own problem. I found a FAQ on the web and here's what it said.

    You may have configured your zNear and zFar clipping planes in a way that severely limits your depth buffer precision. Generally, this is caused by a zNear clipping plane value that's too close to 0.0. As the zNear clipping plane is set increasingly closer to 0.0, the effective precision of the depth buffer decreases dramatically.

    I had my zNear set at .001 which was obviously way to close to 0.0. I changed it to 1.0 and everything works like a charm.

Similar Threads

  1. hidden surface removal
    By Jakeop132 in forum OpenGL: Basic Coding
    Replies: 15
    Last Post: 02-03-2011, 08:14 AM
  2. Hidden surface removal problem
    By in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 04-05-2005, 04:42 AM
  3. Hidden Surface Removal!
    By joda in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-20-2004, 06:57 AM
  4. hidden surface removal
    By dodo in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-29-2002, 07:06 PM
  5. Hidden Surface Removal
    By Rizo in forum OpenGL: General
    Replies: 4
    Last Post: 02-10-2001, 05:28 PM

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