Post by aphoticgenesis on Nov 7, 2009 2:07:01 GMT -5
When making a game remember to use gluLookAt() with the correct vector calulations preferably SVector3(structure) containing x, y, z, usually some other functions, you should use this because it only changes the camera, the old style of camera most people have done on this forum was glRotatef() and glTranslatef( )which is very slow because your rotating all of your data and moving all of your data. So if you want a higher framerate and better performance make a professional camera using gluLookAt() with the correct vector calculations.
Also i might post a tutorial for anyone is confused about what i said, i might also make a plugin which does all of the camera calculations for you.
im going to say that is about half-right, my understand of glulookat() is that it sets the intitial view of the camera then you use transformations just like usual, as glulookat() doesnt contain anyway to rotate the camera, you also use gluperspective to finish the camera off -darkjester