yet another stupid post about camera operation, for rotations and pans.
first of all, i'm doing jobs with JOGL, i'm on Eclipse ide, and i have zero knowledge on 3d stuffs, hope not be too lame.
i want to make some nice effects, like the one linked below, but i didn't managed to.
in past with a java framework called prcoessing.org i've used this lib:
http://mrfeinberg.com/peasycam/
(with the java applet and rotation effect i want to make)
really good one!, but now i'm out of that framework and want to try to do it myself, wihtout ready-to-use libs.
i've tried to read the java code but i didn't understand a lot.. i grabbed that they use apache.geometry for rotations, and maybe quaternions.
i have a central object in position 0,0,0 and i've tried to rotate it following -the mouse-drag movement like that:
gl.glRotatef(rot.x,1,0,0); gl.glRotatef(rot.y,0,1,0); // all scene here// blabla
and rot is a vector with the movement of mouse dragged in screen.
it is really no nice, i don't understand if it's because i'm appling rotation on object and not on camera or because of quaternion (i'm studing..)
and i'm looking for advice or some nice articles that explains some kind of experiments about rotations and pitch.
(in some games pitch and roll are linked for same movment or similar)
thanks!
sorry for confusion