brambilla
01-25-2009, 03:12 AM
After trying to keep track of angles to achieve a full rotation (alternativly around x or y or z axe) I fall in a lock loosing total control.
To figure out what is the goal, think to move the camera (actor point of view) using a 3 axis joystick.
Pushing/pulling forward/backward make rotation on the actor X axe.
Pushing left and right make rotation on the actor Z axe.
Rotating clockwise and counterclockwise make rotation on the actor y axe.
So that, using glulookat becomes quickly a mess :sorrow: .
The point is that:
ALL rotations are around the actor coordinate system [local system, isn't it ?] (like in a plane), so I have to make further and further rotations.
It there must be a solution. But it is far out of my ... screen
ANy help is wellcome.
Send private messages in case .... OK ???
Giovanni
To figure out what is the goal, think to move the camera (actor point of view) using a 3 axis joystick.
Pushing/pulling forward/backward make rotation on the actor X axe.
Pushing left and right make rotation on the actor Z axe.
Rotating clockwise and counterclockwise make rotation on the actor y axe.
So that, using glulookat becomes quickly a mess :sorrow: .
The point is that:
ALL rotations are around the actor coordinate system [local system, isn't it ?] (like in a plane), so I have to make further and further rotations.
It there must be a solution. But it is far out of my ... screen
ANy help is wellcome.
Send private messages in case .... OK ???
Giovanni