PDA

View Full Version : Zoom about a point



03-31-2003, 06: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

Gavin
04-01-2003, 12:47 AM
You mean zoom about a point that is not centred?

04-01-2003, 04:42 AM
yes

04-01-2003, 05: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, 07: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?