LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: TheDude on August 20, 2014, 20:16:43

Title: Rotating A camera in lwjgl
Post by: TheDude on August 20, 2014, 20:16:43
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.
Title: Re: Rotating A camera in lwjgl
Post by: Cornix on August 20, 2014, 21:27:00
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.
Title: Re: Rotating A camera in lwjgl
Post by: TheDude on August 22, 2014, 17:45:35
Thanks, il check that out.