View Full Version : Rotation Matrix
08-12-2003, 12:31 AM
In the Appendix F part of Red book there is
formula for ModelViewMatrix(in the Rotation section) given by
M = UUT + cosa(I - uuT) + (sina)S.
What this formula stands for and where it can be used.
Could you please explain this formula.
08-12-2003, 12:52 AM
M is the rotation matrix "part" of the ModelView matrix. I think the purpose of the text is to explain the details about the ModelView matrix and glRotate. The formula can be used if you want to set the ModelView matrix yourself without using glRotate. Some similar texts: http://www.sjbaker.org/steve/omniv/matrices_can_be_your_friends.html
08-12-2003, 01:27 AM
The above formula is used in Billboard examples.what is the logic and why is it used in Billboarding examples.
08-12-2003, 11:03 PM
Searching for "billboard" in the red book only gave me the example with the tree. I did not found any reference to the above formula.
A call to glRotate generates a matrix that is concatened to the current ModelView matrix with a multiplication. The formula for generating the matrix from glRotate*(a, x, y, z) is your formula as described in the appendix. You can generate a matrix with it and multiply the current ModelView matrix. Check that the effect is the same as a call to glRotate.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.