Rotating A camera in lwjgl

Started by TheDude, August 20, 2014, 20:16:43

Previous topic - Next topic

TheDude

Hello, i was wandering how to rotate the viewpoint in lwjgl i.e when a character turns around. I know how to rotate objects but the not the camera's vie. An help appreciated.

Cornix

You should read up some openGL tutorials about manipulating the perspective matrix.
There are a few build in functions in legacy openGL, GLEW also has some utility methods if I remember correctly.
If you use the newer versions of OpenGL you need to manipulate your own perspective matrix via matrix multiplication.

TheDude