Results 1 to 2 of 2

Thread: how to rotate and zoom at the same time ?

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    Hattiesburg,MS,USA
    Posts
    15

    how to rotate and zoom at the same time ?

    hi all,
    we are writing a program to visualize molecules at different time frames.using glRotatef we made the molecules rotate successfully.but when we tried to zoom in or zoom out using glLookat the rotated model ,it flips.is there any way to do both zoom and rotate together ?

    thank you
    arun

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: how to rotate and zoom at the same time ?

    You do better use glTranslate.

    gluLookat simply uses a combination of glTranslate and glRotate. One of the parameter your are changing for the zooming must be doing some kind of rotation.

    The best thing to would be to write your own gluLookAt.

Similar Threads

  1. How to pan, rotate, zoom object in 3D in glOrtho() view?
    By avstenit in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-06-2013, 05:58 AM
  2. rotate, zoom and panning in ogl steps
    By ahuarte in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-11-2002, 10:31 PM
  3. rotate, zoom and panning
    By ahuarte in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-07-2002, 09:00 AM
  4. What is the correct way to pan, zoom and rotate?
    By billy in forum OpenGL: Advanced Coding
    Replies: 18
    Last Post: 01-16-2002, 08:18 PM
  5. rotate, zoom, pan
    By arung in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-03-2001, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean