Originally Posted by Griftrix
Given point P and location L, create the look at, up, and right vectors of a camera's orientation matrix that is located at L and looking at point P. You can use Z as up, or whatever you want, just tell me which you're using.
Oh, and please show your work.
Under the assumption that P = (0,0,0) and L = (x,0,0) to keep all math simple, your three vectors are as follows:
Look At: <-x,0,0>, or <-1,0,0> for the unit vector (AKA -i)
Up: <0,0,z>, or <1,0,0> for the unit vector (AKA j)
Right: <0,y,0>, or <0,1,0> for the unit vector (AKA k)
From here, it should just be a "simple coordinate transformation" from my system to your cameras. QED :P
(For anyone confused as to what I did, I assumed point L was my eyes, and P was an object on a screen or monitor. Up was the top of the monitor, and right was the right of the monitor. the "simple coordinate transformation" is the entire question that was just asked, getting us nowhere.)