Using glMultMatrix*

Started by
11 comments, last by No_Germs 19 years, 2 months ago
i don't follow... how is your explanation different from what i did? i thought i did the same as your explanation... can you tell me where's my mistake?
Advertisement
Ok, so you did this:

//X Axis
glVertex3f(0,0,0);
glVertex3f(theMatrix[0],theMatrix[4],theMatrix[8]);
//Y Axis
glVertex3f(0,0,0);
glVertex3f(theMatrix[1],theMatrix[5],theMatrix[9]);
//Z Axis
glVertex3f(0,0,0);
glVertex3f(theMatrix[2],theMatrix[6],theMatrix[10]);

it should be:
glVertex3f(0,0,0);
glVertex3f(theMatrix[0],theMatrix[1],theMatrix[2]);
//Y Axis
glVertex3f(0,0,0);
glVertex3f(theMatrix[4],theMatrix[5],theMatrix[6]);
//Z Axis
glVertex3f(0,0,0);
glVertex3f(theMatrix[8],theMatrix[9],theMatrix[10]);

what you were doing would work on the transpose of an openGL matrix

hope that helps
-Dan
When General Patton died after World War 2 he went to the gates of Heaven to talk to St. Peter. The first thing he asked is if there were any Marines in heaven. St. Peter told him no, Marines are too rowdy for heaven. He then asked why Patton wanted to know. Patton told him he was sick of the Marines overshadowing the Army because they did more with less and were all hard-core sons of bitches. St. Peter reassured him there were no Marines so Patton went into Heaven. As he was checking out his new home he rounded a corner and saw someone in Marine Dress Blues. He ran back to St. Peter and yelled "You lied to me! There are Marines in heaven!" St. Peter said "Who him? That's just God. He wishes he were a Marine."
OH OH, i got it... i was trying to convert my matrix from raws to columns when actually it was ok the befrore transformation... Thanks A lot :)

This topic is closed to new replies.

Advertisement