PDA

View Full Version : Zooming in and out



SurGL
05-14-2001, 08:45 PM
Hello, I am writing a small 3d motor race game.
I have a basic doubt.

Say I have to display a road of 200 units long, and to draw vehicle moving in it. If user wants to zoom in, I need to display a portion of this road and as vehicle moves , to change the display.
Is there any OpenGL feature I can use for this purpose. any ideas on how to implement this.
Dont think I am lazy . I have tried my best but in vain.

AndersO
05-14-2001, 09:57 PM
Check out gluPerspective(), there is an inparameter wich specifies "fov".