View Full Version : Survey question
05-01-2003, 09:02 AM
Quick question for you all. To handle your transformations do you:
1) Use glRotate/Translate/Scale exclusively
2) Use matrices and glMultMatrix() exclusively
3) A combination of 1) and 2)
What advantages are there in using one method over another?
05-01-2003, 12:20 PM
It depends on the situation. Normally, glRotate/Translate/Scale operates faster than multiplying the same matrix manually simply because of internal optmizations OpenGL can do when it knows exactly what you're intending. However, sometimes handling your modelview matrix manually can increase speed, such as when using quaternions for rotation. I'd say I use the gl* commands far more often, although I don't know if that is the norm because I'm more or less an openGL newbie.
I also like to go for (1). The other requires to understand exaclty how matrices work and I'm still a newbie here.
05-02-2003, 03:51 AM
I'm an OpenGL newbie as well. I was, however, intrigued by the writings and internet postings of one Steve Baker, who says that you need to understand matrices before truly mastering OpenGL/3D, so I decided to re-learn them (after learning in college 15 years ago ;-)).
Anyway, here is one of his articles. I'd be interested in hearing what you all think of this, especially the more seasoned GL'ers.
05-02-2003, 08:09 AM
I use both, depending on what's going on. Usually I store matricies in arrays of floats, so rather than load, manipulate, then get the matrix, I figure it's more efficient for me to manipulate them by hand, but then again, Im not quite new to OpenGL anymore.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.