Say I have a world object at point W and a camera at point C. How do I make the camera point at the object?
If I have one vector UP that is (0,2,0) how do I show the rotation matrix for this camera?
Any helpful references would be appreciated, Thanks!
Follow this Nehe article on cameras:
http://nehe.gamedev.net/article/camera_class_tutorial/18010/
Particularly the “Following Targets” section where it shows how to get the camera vectors for looking at an arbitrary point.