Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opengl: moving the camera "fps style"

Tags:

opengl

3d

I want to move the camera inside a 3D scene like this in a first person shooter style, how can I do that?

like image 224
andandandand Avatar asked Dec 22 '22 20:12

andandandand


1 Answers

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".

like image 124
Andrew White Avatar answered Dec 29 '22 22:12

Andrew White