PDA

View Full Version : zoom out



dutchstud
02-13-2002, 07:12 PM
I am really new at this so just bear with me.
When i start a window, the coordinates go from -2 to 2 for x and y. what is the best way to change this?

Questions Burner
02-15-2002, 07:11 AM
Use the gluLookAt function.

gluLookAt(
eye_x, eye_y, eye_z,
at_x, at_y, at_z,
up_x, up_y, up_z);

up
|
|
at---------------- eye

tempocrew
02-15-2002, 12:50 PM
Or simply just translate into the screen:
glTranslatef(0.0f,0.0f,-10.0f);