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: Regarding clipping

  1. #1
    Intern Contributor
    Join Date
    Jan 2012
    Posts
    58

    Regarding clipping

    Hello All,

    I have a small question regarding clipping. Now i know that the clipping happens in the clip space. So, we can throw away points if outside the view frustum, else retain it.
    Now, suppose we have a line wherein one point is outside and another is inside. So, we need to clip this exactly till the point where the line intersects the view frustum.
    Is this computation also done in the clip space?

    So, we need to generate a new vertex in the above example(the intersection point). Is this also done in the clip space?

    Thanks!

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,847
    Quote Originally Posted by myk45 View Post
    So, we need to clip this exactly till the point where the line intersects the view frustum.
    Is this computation also done in the clip space?
    Yes. Once you're coding in shaders, you'll see that that CLIP-SPACE may be the only space in which the GPU receives your vertex positions.

Posting Permissions

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