mathx
08-22-2001, 12:41 PM
Hello,
Ok, I'm having some real problem trying to make this work http://www.opengl.org/discussion_boards/ubb/smile.gif
I figured, first three parameters (eye) are the position of the "camera", the next three (center) are the vector in wich the "camera" is looking, and the last three (up) is the vector that indicates the up direction.
If I move only the eye coordinates, the camera "flips" direction when I cross the center vector. Thatīs predictable. So I have to move the center vector whenever I move the eye vector. Thatīs fine.
But when I rotate, I move the center vector. So now, when I try to move the eye ahead, I can't just increse the z position of the eye vector, because I ain't really aligned to the world http://www.opengl.org/discussion_boards/ubb/smile.gif
So far so good? So I have to move all three coordinates in eye vector to move forward, right? What are the equations to that? I did it once, but I guess I forgot how to do it...
Thanks,
Matheus Degiovani.
Ok, I'm having some real problem trying to make this work http://www.opengl.org/discussion_boards/ubb/smile.gif
I figured, first three parameters (eye) are the position of the "camera", the next three (center) are the vector in wich the "camera" is looking, and the last three (up) is the vector that indicates the up direction.
If I move only the eye coordinates, the camera "flips" direction when I cross the center vector. Thatīs predictable. So I have to move the center vector whenever I move the eye vector. Thatīs fine.
But when I rotate, I move the center vector. So now, when I try to move the eye ahead, I can't just increse the z position of the eye vector, because I ain't really aligned to the world http://www.opengl.org/discussion_boards/ubb/smile.gif
So far so good? So I have to move all three coordinates in eye vector to move forward, right? What are the equations to that? I did it once, but I guess I forgot how to do it...
Thanks,
Matheus Degiovani.