View Full Version : beginner wants to zoom
01-05-2001, 08:51 AM
i have drawn a graph. i want zoom functionality on the mouse click. any hints/clues/sample apps would be greatly appreciated.
make the graph bigger.
using a perspective projection u can use a smaller FOV.
with an orthogonal projection use glScale.(...)
01-08-2001, 07:39 AM
Youre speaking greek...Im too new at this. What is FOV and please explain how making the graph bigger accomplishes my goal?
01-08-2001, 09:32 AM
void ChangeSize(GLsizei w, GLsizei h)
gluPerspective(15.0, aspect, 0.01, 500.0);
the value 25.0 in the gluPerspective(); is the field of view. if it shrinks then the scene looks like it zooms in.
[This message has been edited by grady (edited 01-08-2001).]
01-08-2001, 10:29 AM
Thanx...works like a charm
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.