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

Thread: Clipping Planes

  1. #1
    Guest

    Clipping Planes

    Hi, im tring to use clipping planes to make hemispheres from gluSphere objects.

    I'm making these hemispheres within a function using a list to be called by glCallList, however my clipping planes either dont work or clip the rest of my world as well.

    Is there any way of making a clipping plane 'local' to one drawn object so that it doesnt affect anything else?

  2. #2
    Guest

    Re: Clipping Planes

    also, do clipping plans move when the camera ges to a new positin, ie, is the positining of the clipping plane relative to the camera?

  3. #3
    Guest

    Re: Clipping Planes

    can no-one help me?

  4. #4
    Member Regular Contributor
    Join Date
    Oct 2001
    Location
    Princeton, NJ
    Posts
    386

    Re: Clipping Planes

    to make a plane "local" simply enable the plane before drawing the object and disable it afterward. I have no idea how clipping planes are transformed, but you could fairly easily write a program to check or could look it up in the spec available on the website.

  5. #5
    Guest

    Re: Clipping Planes

    I've managed to make my clippling planes local to an object, however, the clipping planes are located relative to the camera which is annoying. Is there any way of making them 'static' as it were so they dont move about when i change my glLookAt coordinates?

  6. #6
    Guest

    Re: Clipping Planes

    anybody got any ideas?

  7. #7
    Guest

    Re: Clipping Planes

    *bump*

    I really need some help

  8. #8
    Junior Member Regular Contributor
    Join Date
    Jan 2004
    Location
    Los Angeles, CA, USA
    Posts
    219

    Re: Clipping Planes

    I'm not sure. I haven't used clipping planes. I would have gone for writing your own hemisphere code.

  9. #9
    Advanced Member Frequent Contributor plasmonster's Avatar
    Join Date
    Mar 2004
    Posts
    739

    Re: Clipping Planes

    Mike,

    when you specify a clip plane it is transformed by the model matrix. If you don't want your planes transformed, then load an identity on the matrix stack before you set them.

Posting Permissions

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