PDA

View Full Version : how to rotate and zoom at the same time ?



arnott
05-29-2000, 04:25 PM
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

Gorg
05-29-2000, 06:22 PM
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.