Camera class available

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…

If you want you could just post it here, putting the code in code tags so months from now when someone searches and finds your message, they can find the code as well :slight_smile:

I already ported it a long time ago along with Tutorial number 41 :wink:
;D

And where is this port? I went to http://pepijn.fab4.be/nehe but Lesson 41 is one of the few tutorials that isn’t available there.

Anyway I went to see the tutorial n.41 but it only allows you to go forward and backward…

Well if you implemented a camera class did you perhaps encounter any problems in orbiting on the X axys?
After a certain angle of rotation it goes in reverse :slight_smile:
I wonder what it is…

http://www.realityflux.com/abba/GT41.zip
Enjoy :slight_smile:

Shouldn’t all these NeHe ports be hosted under jogl demos?

After many adventures I have finally implemented a (drum roll) QUATERNION camera 8)

It supports all the usual FPS movements (including mouselook), hovering Up and down, and orbiting around a point.

Although It will only orbit around a certain radius that I have not yet figured out how to increase. It just seems to work… maybe if someone wants to have look on my class we could improve it. So if anyone is interested I’ll post it here and explain any doubts that might arise.

[quote]Shouldn’t all these NeHe ports be hosted under jogl demos?
[/quote]
Yes. If someone could assemble a jogl-demos workspace containing the NeHe demo ports as part of the existing demo hierarchy I’ll help get it checked in.