Caesar

06-23-2000, 03:38 PM

My apologies for asking so many questions. And my thanks to everyone who's helped me so far.

Here's the question:

Is it possible to replace multiple calls to glRotate*() with a single matrix?

I mean. Can I take three rotation matrices (one for each axis) multiply them together (on paper) and thereby having ONE matrix than does all three rotations at once. And just update the angle-variables?

So I have a matrix. I put arbitrary angles into the rotation-angles (I named them a,b and c) and then I do the calulations I have in my angle, upon which I multiply it with the current matrix. Will that work?

Can I multiply the product of three rotation matrices with the current matrix and expect to get the same result as multiplying the current matrix with the three rotation matrices sequentially?

Here's the question:

Is it possible to replace multiple calls to glRotate*() with a single matrix?

I mean. Can I take three rotation matrices (one for each axis) multiply them together (on paper) and thereby having ONE matrix than does all three rotations at once. And just update the angle-variables?

So I have a matrix. I put arbitrary angles into the rotation-angles (I named them a,b and c) and then I do the calulations I have in my angle, upon which I multiply it with the current matrix. Will that work?

Can I multiply the product of three rotation matrices with the current matrix and expect to get the same result as multiplying the current matrix with the three rotation matrices sequentially?