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 4 of 4

Thread: Just a Curious Question about Clipping Planes?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2007
    Location
    Birmingham, UK
    Posts
    12

    Just a Curious Question about Clipping Planes?

    Plain and simple...

    Does anybody know if glClipPlane affects performance either way. Does it still send the vertices that have been clipped out through the rendering pipeline? And if it doesn't what is done. And is there better alternatives to cull vertices from your object in 3D space.

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2007
    Location
    South Africa
    Posts
    17

    Re: Just a Curious Question about Clipping Planes?

    no diff to Frustum clipping.
    But not the best method.
    Just don't call the code that does the drawing if you want to
    cull verts or a whole object.

    Clip planes and frustum clipping is done on the hardware at the last possible moment.
    get the redbook

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2006
    Posts
    20

    Re: Just a Curious Question about Clipping Planes?

    A little more info:

    From my understanding of things, nVidia doesn't actually have a real clipping engine. They determine the distance each vertex is from the clip plane and pass that value onto the fragment shader as a varying so you get the interpolated distance from th clip plane of every fragment. Inside the fragment shader the distance is checked for whether it is negative. If so, the fragment is killed. This is done for each enabled clip plane. Standard frustum culling can be done by the scan converter. This would explain such extensions as the depth clamp. The scan converter presumably disables its fragment culling along the z axis and instead clamps the interpolated depth value.

    ATI has a dedicated clipper and can perform user clip planes with this. It uses the same logic/stage for frustum culling as clip planes. This has the benefit of not using up an interpolator. However, the clipping is done post projection space. So, this can lead to precision artifacts that would not occur if the clipping occurred pre-projection OR via the interpolator method used by nVidia.

    Intel ... no clue.

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2007
    Location
    Birmingham, UK
    Posts
    12

    Re: Just a Curious Question about Clipping Planes?

    Thanks guys, that is definately food for thought D

Posting Permissions

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