PDA

View Full Version : difference between using glulookat & glrotate + gltranslate



mithun_daa
10-15-2003, 06:50 AM
is there any basic advantage (speed, quality) using glulookat() instead of using glrotate, gltranslate and glscale together?

virtualchetan
10-15-2003, 07:15 AM
With gluLookAt u can position your camera more intuitively than using a series of Co-ordinate system transformations

mithun_daa
10-15-2003, 09:17 AM
but is there any difference in the performance? is glulookat faster?


Originally posted by virtualchetan:
With gluLookAt u can position your camera more intuitively than using a series of Co-ordinate system transformations

satan
10-15-2003, 09:55 AM
Originally posted by mithun_daa:
but is there any difference in the performance? is glulookat faster?


I doubt that there will be a significant difference. There are enough things in a 3D app that will have a greater impact on performance.

Mazy
10-16-2003, 12:25 AM
I dont see why this question comes up that often.. unless you are moving the 'camera' about 1million times per frame it shouldnt be any significant problem.. and regarding whats faster.. try it maybe?

10-16-2003, 03:49 AM
The two are probably near the same speed, because if you think about it, the 2 have to do the same thing (position and orient the camera). If you want to get technical, gluLookAt would be faster (by some very small amount) because it is just 1 call from the app as opposed to 4-5 (or whatever it is you are doing) calls from the app.