Moving the camera around a point

Hi y’all.

I’m looking for a solution to move my camera on a circle around the point which is looked.
I don’t know yet how to figure out the coordinates of the camera, does anybody has any idea about that?

Thanks

Take a look at the gleem ExaminerViewer which is in the jogl-demos source tree. It implements the kind of camera rotation you’re after.

gluLookAt(eye, center, up) is very convenient for controlling
the camera. The point you’re looking at is the ‘center’ and
the camera’s position is the ‘eye’. The ‘up’ vector is usually (0,1,0).

Check out my site’s OpenGL links for links on this topic:
www.waterlogic.com.sg/opengl
Look for the ‘Interactive tutorials’ link.

.rex