View Full Version : gluLookat() vs. glTransform/glRotate - Which is Faster?
03-16-2001, 04: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?
03-16-2001, 09: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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.