Results 1 to 3 of 3

Thread: ViewVolume and Clipping in OpenGL 3.x

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

    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
    Senior Member Regular Contributor
    Join Date
    Aug 2005
    Posts
    145

    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
    3

    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?

Similar Threads

  1. Viewvolume Clip Planes
    By glfreak in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 11-25-2004, 12:25 AM
  2. OpenGL clipping
    By A027298 in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-01-2004, 08:52 AM
  3. viewvolume size at runtime
    By mithun_daa in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-15-2003, 09:35 AM
  4. Replies: 1
    Last Post: 09-02-2003, 01:45 PM
  5. Clipping (not clipping) in opengl
    By FunkyLovin in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 06-04-2001, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean