Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Zoom about a point

  1. #1
    Guest

    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

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: Zoom about a point

    You mean zoom about a point that is not centred?

  3. #3
    Guest

    Re: Zoom about a point

    yes

  4. #4
    Guest

    Re: Zoom about a point

    gluLookAt( x, y, z, x2, y2, z2, x3, y3, z3) http://www.cevis.uni-bremen.de/~uwe/...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/Lect...es/node62.html

  5. #5
    Guest

    Re: Zoom about a point

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •