Hi!
Is it possible to set 'clipping bounds' in JOGL? Like in Java/Swing i would like to set clipping bounds and all drawing/rendering outside those bounds would be ignored.
Hi!
Is it possible to set 'clipping bounds' in JOGL? Like in Java/Swing i would like to set clipping bounds and all drawing/rendering outside those bounds would be ignored.
OpenGL (for which JOGL is just a wrapper) has the concept of a clip plane. You can set a number of clip planes in your scenes (at least six, usually more), and anything outside them won't get drawn. These planes are specified in 3D, and the clip calculation is done in 3D.
Look for GL.glClipPlane(...)
If you are looking for clipping in 2D in the screen space, look for GL.glViewport(...).