Sign in to follow this  

gluLookAt --- stupid question

Recommended Posts

Am I supposed to use gluLookAt in the modelview or perspective matrix mode? At the moment this is what I do: glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0f, 4.0f/3.0f, 0.1f, 200.0f); gluLookAt(0.0f, 2.0f, -10.0f, 0.0f, 0.0f, 0.0f, 0.0f, 10.0f, 2.0f); glMatrixMode(GL_MODELVIEW); Is this the way it's supposed to be? -richardo

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this