gilder Novice
Age:35 Gender: Joined: Sep 02 2006 Posts: 35 Location: Finland Offline
|
Posted: Mon Jun 18, 2007 7:06 pm Post subject: Rotation in 3 dimensions |
|
|
|
|
I'm working on a 3D project using OpenGL and i got a rotation problem.
what needs x, y and z to be so this:
glRotatef(y, 0.0f, 1.0f, 0.0f);
glRotatef(x, 1.0f, 0.0f, 0.0f);
glRotatef(z, 0.0f, 0.0f, 1.0f);
will do the same thing with this:
glRotatef(y1, 0.0f, 1.0f, 0.0f);
glRotatef(x1, 1.0f, 0.0f, 0.0f);
glRotatef(z1, 0.0f, 0.0f, 1.0f);
glRotatef(x2, 1.0f, 0.0f, 0.0f);
EDIT: Things solved in other forums. _________________ Hockey Zone |
|