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

Thread: ViewVolume and Clipping in OpenGL 3.x

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2009
    Posts
    5

    ViewVolume and Clipping in OpenGL 3.x

    How to set view volume or clipping in OGL 3.x?
    I've read something about gl_ClipDistance[ i ] but I'm not sure how to use it.

    Is there any good tutorial about clipping in OGL 3 or any way to disable clipping?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2005
    Posts
    148

    Re: ViewVolume and Clipping in OpenGL 3.x

    Among other things there's a brief mention of this in the GLSL Siggraph presentation linked in a thread below.

    ClipDistance is just a value that's interpolated across the primitive. Negative values are considered in back of the plane or in the negative half-space. The union of the positive half-spaces forms the actual view volume.

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2009
    Posts
    5

    Re: ViewVolume and Clipping in OpenGL 3.x

    But what functions should I use to set my own view volume? Section 2.19 of GLspec do not mention any functions nor vertex shader functions used that can be used as alternative to glOrtho()?

    My current problem is that some parts of geometry are clipped before they go out of view. It looks like I'm stuck with in 1x1x1 view volume cube.

    Any idea's of a way around it?

Posting Permissions

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