Advertisement

zooming in/out

Started by July 22, 2003 12:11 PM
3 comments, last by Simoyd_ 21 years, 7 months ago
i have this 2d game where i will need to zoom out at an extreme level. thing is, once i translate past about -100 in the z direction, it doesnt draw the objects. i have it set up so that the closest possible zoom level (-0.11) is the closest i want to get, but how can i got farther away than -100?
Thats an easy one, In the code you use to resize the scene, or wherever u use gluPrespective, change the last parameter to what you want. Understand?
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
Advertisement
Or zoom in/out by changing the perspective angle, because then you won''t have to deal with the near/far clipping plane at all.
-~-The Cow of Darkness-~-
You could
(1) as bob suggested, increase your far clipping plane distance
(2) reduce the scale of your world
(3) as cows suggested, change the viewing angle.

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links


[edited by - zealouselixir on July 22, 2003 3:58:30 PM]

[twitter]warrenm[/twitter]

thx all, now go answer the other questions i posted

This topic is closed to new replies.

Advertisement