In addition to Mark Montana's advice on using the OpenGL
selection mechanism, you may also want to consider doing the
ray-object intersections in your application to get more control
over the selection process.
The free software library gleem
( http://www.media.mit.edu/~kbrussel/gleem/ ) implements a small
library of 3D manipulator widgets on top of "OpenGL for Java
Technology" (the official, non-trademark-infringing name of
GL4Java). You could use this library to implement your picking
and moving, and for the 1D and 2D translation widgets, even
replace the widgets' geometry with your own.
|