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 !
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>
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.
Also after setting up the clip plane with glClipPlane you can use glEnable(GL_CLIP_PLANE#)/glDisable(GL_CLIP_PLANE#) for quick switching.
Bookmarks