What functions are there for zooming? i need to zoom in an idle function until the screen becomes blank
There are a few ways you can zoom in opengl. One of the easier ways would be to use the glTranslate function. You could also increase the size of your object that your rendering. Another option is using glScale.
http://www.mevis.de/opengl/glScale.html
http://www.mevis.de/opengl/glTranslate.html
http://www.mevis.de/opengl/glScale.html
http://www.mevis.de/opengl/glTranslate.html
One of the ways you can achieve a zoom effect is to change your field of view when you set up your projection. A larger field of view will give you a really nice zoom effect. This is what most people do. It's very common to see people through an alpha tested 2D quad on the screen to simulate a scope or something and then just blow up the FOV.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement