sproingie
|
 |
«
Reply #2 - Posted
2013-02-25 06:19:30 » |
|
You keep the camera a fixed distance away, and dragging left or right rotates ("orbits") the camera around the circle, keeping it pointed at the center. Dragging up or down either tilts the circle (turntable camera) or raises the circle up or down latitudes in a sphere (orbiting camera) depending on the effect you're going for -- a game almost always uses an orbiting camera, otherwise it would clip through the ground, while a modeler will use a turntable camera.
It's all pretty easy to achieve with gluLookAt, which has several implementations including ones built in to JOGL and LWJGL, and you can probably find a GLSL implementation out there too.
|