View Full Version : Zoom about a point
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
04-01-2003, 12:47 AM
You mean zoom about a point that is not centred?
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
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?
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.