Hello there! I have ported and combined the camera class from gametutorials’ examples to JOGL and since I spent so much time searching for this kind of information I thought that someone might be interested,
Instead of moving the objects with commands like glTranslate, glRotate, it places a sort of virtual camera in the scene that you can interact with.
Right now it supports:
-Zooming In/Out
-Rotating View
-Orbiting around an object
I’m about to implement camera panning and tilting.
The actual interaction (right now) is done by capturing keypress events, but as soon as I have time I’ll try to implement a 3D-Studio like mouse-interaction.
Well if anyone is interested just reply and I’ll upload the class…