Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: skirt shines through surface. z-fighting?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Bavaria, Germany

    skirt shines through surface. z-fighting?


    i use geomipmapping and skirts for crack fixing. The skirts are stored in a vertexbuffer with the rest of the chunk data and get drawn when the terrain chunk is drawn. The problem is that the skirts shine through the terrain geometry. It looks alot like z fighting. Any idea how to fix that? GL_DEPTH_TEST and z-writes are enabled.

    thanks alot!


  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Bay Area, CA, USA

    Re: skirt shines through surface. z-fighting?

    The problem is zbuffer precision.

    Move the near clip plane out a bit if you can.

    If you don't need a skirt don't use one.

    If you need the skirt give the skirt the same surface normal as the polygon of the terrain.

    You may want to use polygon offset on the skirt if all else fails.

Posting Permissions

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