difference between using glulookat & glrotate + gltranslate

is there any basic advantage (speed, quality) using glulookat() instead of using glrotate, gltranslate and glscale together?

With gluLookAt u can position your camera more intuitively than using a series of Co-ordinate system transformations

but is there any difference in the performance? is glulookat faster?

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

[/b]

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.

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?

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.