Rotation problem, i even do a WEB page to let you see my problem

Hi there!

Tanks for taking time to listen to my problem.

It is about rotation problem around X,Y and Z axis. You can take a look at my problem here: http://sicklab.dhs.org/rotation/rotation.htm

Here is how a transform my object:

glTranslate(pos.x, pos.y, pos.z);
glRotate(Xangle, 1.0, 0, 0);
glRotate(Yangle, 0, 1.0, 0);
glRotate(Zangle, 0, 0, 1.0);

Am i doing something wrong?

Tanks a lot for helping me… I am desparate…

Best regards,

You shouldn’t have worried. Rotating 90 degrees round Y then X have the same effect as rotating 90 degrees round Z then Y. The order in which you wrote your glRotate commands force OpenGL of rotating in the sequence Z,Y,X. Now if you calculate the three rotation matrices for an angle 90 degrees (and they are easy to carry out in this case) and multiply RxRy and RyRz you’ll find the same result .

[This message has been edited by softland_gh (edited 12-19-2000).]