Camera (View) Matrix - Help

E035e512fb471530fd0be0a8bb8e9e37
0
ajit_kamat 101 Jun 14, 2005 at 09:40

Hi,

I am having hard time understanding the camera (view) matrix:

Ux Vx Nx 0
Uy Vy Ny 0
Uz Vz Nz 0
-E.U -E.V -E.Z 1

How is this matrix constructed?
Why are there dot products in the translation section of this matrix?
How is rotation and translation actually achieved by this matrix?

Cheers,

\~Ajit

3 Replies

Please log in or register to post a reply.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Jun 14, 2005 at 13:22

U, V and N are generally known as the camera vectors. U is your view vector. the camera looks into this direction. the V vector is a vector you choose. it has to be orthogonal to the U vector. finally the N vector is the cross product of U and V, thus forming a cartesian coordinate system. all that is left is to find out is the translation part… usually it is just the negative of the camera’s position.

i don’t know what E and Z are… could you clarify on that ? i assume that E is the eye or camera position ?

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Jun 14, 2005 at 13:38

assuming that the last part of the translation is actually -E.N your are technically rotating E from camera to world coordinates, taking the negative of each component

E035e512fb471530fd0be0a8bb8e9e37
0
ajit_kamat 101 Jun 15, 2005 at 16:55

yep, you are right it should be -E.N. Thank you for the reply.

\~Ajit