PDA

View Full Version : gluLookat() vs. glTransform/glRotate - Which is Faster?



Heaven
03-16-2001, 05:46 AM
I'm wondering whether people use gluLookat or the gl modelview transformation functions to position their "camera", or eyepoint. I'm thinking that the raw transformation functions may be slightly faster, but gluLookat is definitely more intuitive.

Any opinions/facts you would like to share?

Thanks,
Heaven
heaven@knology.net

Tim Stirling
03-16-2001, 10:12 AM
gluLookAt uses glRotate and glTranslate so speed isn't going to be much different, gluLookAt may even be slower as it is more complex. gluLookAt is however more functional/useful/powerful and so is useualy better but it depends what you want to do with it. The important thing is not to bother making your own looking matrices and multiply them because this would `usualy` be slower unless you have specific needs.