Opengl: moving camera "fps style"

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

+3
source share
2 answers

Your questions are pretty general, so I'll tell you about the great NeHe tutorials that can explain this a lot better than I can in the space allowed for SO Answers ...

http://nehe.gamedev.net/data/articles/article.asp?article=08

This section may be very detailed, but the above article is a good start for understanding the matrix transformations and how it interacts with the “camera”.

+7
source
+5

Source: https://habr.com/ru/post/1779213/


All Articles