Results 1 to 3 of 3

Thread: Orthographic: clipping a region

  1. #1

    Orthographic: clipping a region

    Hi! I'm doing some rendering in glOrtho mode
    I was wondering, how can draw something in a way that only things inside a given rectangle are really drawn ?
    Something like clipping.

    Thanks !
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  2. #2

    Orthographic: clipping a region

    You can specify clip planes with glClipPlane, but a much more universal way would be to draw the form you want clipping against in the stencil buffer and then use stencil testing while drawing.

  3. #3

    Orthographic: clipping a region

    Also after setting up the clip plane with glClipPlane you can use glEnable(GL_CLIP_PLANE#)/glDisable(GL_CLIP_PLANE#) for quick switching.

Bookmarks

Posting Permissions

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