View Full Version : Zoom about a point

03-31-2003, 05:50 PM
Can anybody help me with zooming about a point in orthographic and perspective views. I know i can change fov and zoom but how would i do it about a point.
Thanks in advance

03-31-2003, 11:47 PM
You mean zoom about a point that is not centred?

04-01-2003, 03:42 AM

04-01-2003, 04:45 AM
gluLookAt( x, y, z, x2, y2, z2, x3, y3, z3) http://www.cevis.uni-bremen.de/~uwe/opengl/gluLookAt.html

xyz - current eye coordinates
x2y2z2 - location of object looking at
x3y3zy - which way is up?

move your eye location closer to your target to zoom... you could use 3d spherical coordinates for nice zoom effects http://walet.phy.umist.ac.uk/QM/LectureNotes/node62.html

04-01-2003, 06:36 AM
i am trying to zoom using fov ,so if i am zooming about a point then i assume i need to move my model is it right?