Part of the Khronos Group
OpenGL.org

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
    Location
    Bavaria, Germany
    Posts
    23

    skirt shines through surface. z-fighting?

    Hi,

    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!

    regards,
    stephan

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

    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
  •