Who can help me understanding OpenGl,
Members - Reputation: 122
Posted 22 April 2002 - 09:34 PM
gluPerspective sets up perspective transform. It basically sets up the matrices so that you have an environment that has perspective like the real world does: more distant objects appear smaller. The first parameter is field of view: how much of the world you can see at any single time. The second parameter is the aspect ratio, that is the ratio of width to height for your screen. The last two are near and far clipping distances. The geometry that is closer than the near or farther than the far clipping distance is not rendered. These parameters controls the depth buffer values.