OpenGL的:移动摄像头和QUOT; FPS风格" [英] Opengl: moving the camera "fps style"
问题描述
我想移动摄像机内部的3D场景这样在第一人称射击游戏的风格,我该怎么办呢?
I want to move the camera inside a 3D scene like this in a first person shooter style, how can I do that?
推荐答案
您的问题相当普遍,所以我要指出,你在伟大讷河教程可以解释比我这个远好于允许的空间SO答案...
Your questions is rather general so I'm going to point you over to the great NeHe tutorials which can explain this far better than I can in the space allowed for SO Answers...
<一个href="http://nehe.gamedev.net/data/articles/article.asp?article=08">http://nehe.gamedev.net/data/articles/article.asp?article=08
这话题可以得到很深入,但上面的文章是一个好的开始是了解矩阵变换以及它如何与一个摄像头互动。
This topic can get very in-depth but the above article is a good start at understanding matrix transforms and how it interacts with a "camera".
这篇关于OpenGL的:移动摄像头和QUOT; FPS风格&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!