简体   繁体   中英

3d Camera - How to Change Camera Orientation?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM