java - Jogl - set 'cliping area' -
is possible set 'clipping bounds' in jogl? in java/swing set clipping bounds , drawing/rendering outside bounds ignored.
opengl (for jogl wrapper) has concept of clip plane. can set number of clip planes in scenes (at least six, more), , outside them won't drawn. these planes specified in 3d, , clip calculation done in 3d.
look gl.glclipplane(...)
if looking clipping in 2d in screen space, gl.glviewport(...).
Comments
Post a Comment