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: clipping plane and drawing optimizations

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2004
    Posts
    12

    clipping plane and drawing optimizations

    Recently I've been rendering my scenes front to back to take advantage of Z-culling.

    Per my gluPerspective call, the values of my near/far clipping planes are 1/200.

    Now, does that mean that everything outside the clipping planes will not be sent the pipeline? Or do I have to exclude those vertices myself. What about the rest of the object? Say your on the other side of a building, should you really have to render the side just because it is in the clipping plane?

    One more thing, I've been trying out a multipass solution I found in a china joy 2004 presentation. Is a multipass solution something you would normally use, or is it for special cases where your in desperate need of optimization.

    Thanks

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: clipping plane and drawing optimizations

    Hi !

    Nope, the clipping is done by OpenGL, so it has to get the triangles before it can clip them, so everything is sent down the pipeline no mater what your clipping planes and view frustum is, there does exist OpenGL extensions though to do frustum clipping.

    Mikael

Posting Permissions

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