Generating the view matrix from 3 vectors in OGL
Hi. I am using 3 vectors to represent my camera (the look vector, the up vector and the right vector). Can someone explain how to generate a matrix that can then be fed to OpenGL from these three vectors? Thanks.
The normal way is to use gluLookAt(exyx, eyey, eyez, centerx, centery, centerz, upx, upy, upz). I do not understand what you mean with the "right vector"?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement