Hello Guest

View matrix and camera rotation (OpenGL 3.2)

  • 1 Replies
  • 6977 Views
View matrix and camera rotation (OpenGL 3.2)
« on: February 11, 2013, 21:59:04 »
Hello.
Can you help me with a little problem i'm trying to rotate camera (you know LOK UP, LOOK DOWN, TURN LEFT, TURN RIGHT).
Based on
The Quad with Projection, View and Model matrices
http://lwjgl.org/wiki/index.php?title=The_Quad_with_Projection,_View_and_Model_matrices

i assume that i need to do something with viewMatrix but I have no idea how to go about it.

*

Offline basil

  • **
  • 81
Re: View matrix and camera rotation (OpenGL 3.2)
« Reply #1 on: February 14, 2013, 23:39:57 »
you need basic understanding on how opengl handles a matrix

http://www.khronos.org/opengles/sdk/1.1/docs/man/glLoadIdentity.xml

select matrix, load-matrix etc.

maybe that helps too : http://www.songho.ca/opengl/gl_transform.html