Opengl:移动相机“fps风格" [英] Opengl: moving the camera "fps style"
本文介绍了Opengl:移动相机“fps风格"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 3D 场景中移动相机像这样第一人称射击风格,我该怎么做?
I want to move the camera inside a 3D scene like this in a first person shooter style, how can I do that?
推荐答案
您的问题相当笼统,所以我将向您指出伟大的 NeHe 教程,这些教程比我在允许的空间内解释得更好所以答案...
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...
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:移动相机“fps风格"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文