3dcamera

3d Camera Position given some points

Heyo, I'm currently working on a project where I need to place the camera such that the full motion of a character would be viewable without moving the camera. I have the position where the character starts, as well as the maximum distance that the character will travel in all three directions (X,Y, & Z). I also have the field of view (...

Glut glLoadMatrixf camera equivalent.

In my glut application I'm simulating a plane with the camera. When the planes speed is low I intend to have the nose start to point towards the ground as the camera falls. My first instinct was to just change the pitch until it was pointed downwards at -90degrees. However I can't just change the pitch because if the plane is tilted o...

Will this cause gimbal-lock?

I making a very simple 3d scene, having 5 points in world coordinates. I'd like to navigate across the scene so I'm defining a camera with both an UP and OUT vector. With this information I generate a rotation matrix in every frame, which I'll apply to the vectors in order to get the camera coordinates. The question is: I've read about ...

Determining camera location from 3 known points

Hi, I'm new here - so please bear with me if I make a faux pas! My question is, is there a good algorithm for determining the 3d location and orientation of a camera based on where 3 (or more) known 3d points end up on an image as viewed from that camera? The question comes down, in my calculation to 6 equations, with 6 unknowns, thou...