View Full Version : gluLookAt, glTranslates and glRotates

09-11-2000, 07:10 PM
hi everyone...

when glanced over almost of the terrain programs, i found that the developers prefer to use glRotates and glTranslates instead of gluLookAt to determine the 'camera' position.

i wonder why those two functions used, because in as far as i concerned, both funcs (gltranslates and glrotates) are for objects.

can anyone explain...?
thanks for anybody who are helping me...

Ms Zack

09-12-2000, 03:36 PM
You can use rotations and translations for a camera as well as for any object. There are no restrictions.

What gluLookAt does is compute the right rotations and translations for you. However if you can calculate them yourself you save some functions calls, although I'm inclined to say that the bennefit should be marginal.

09-13-2000, 07:20 PM
thanks Antonio...
really appreciate it.