Server Help
Non-Subspace Related Coding - Rotation in 3 dimensions
gilder
- 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.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001
phpBB Group