Advertisement

Eye position

Started by February 17, 2003 02:35 AM
3 comments, last by Leopold 22 years ago
How can I retrieve the eye position from the view matrix ? Thanks in advance
Wouldn''t you please explain, what for on the earth you need it?
Advertisement
Calculating a reflection vector.

reflect = eye - position

Thank you.
yes, but i think you should be storing the orientation of the camera(eye) so you wouldn''t need to extract this info from the view matrix. depending if your view matrix is row or column major then your eye position is {M41,M42,M43} or {M14,M24,M34} where M is your Camera matrix, Make sure that only the camera transform is the only one on the view.
Thanks a lot.

This topic is closed to new replies.

Advertisement