i want to draw a glu sphere(for arcball mouse control), always at the same size, no matter what the distance it is from the camera, or its location relative to the camera
i was thinking to get the 2d postion of the sphere on the viewport(using gluUnproject) then pass this values to
a glOrtho cam:
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glLoadIdentity();
gl.glOrtho(cam.getFrustLeft(),
cam.getFrustRight(),
cam.getFrustBottom(),
cam.getFrustTop(),
1, 1000);
gl.glMatrixMode(GL.GL_MODELVIEW);
gl.glLoadIdentity();
and draw it at the location that is interpolated between the viewport dimensions and the the camera frustum parameters
but i really have the idea it can be easier
any help
Paul