OpenGL任意轴旋转等价

时间:2012-02-27 17:58:02

标签: opengl rotation

是否可以使用x y和z旋转值模拟绕过原点的任意轴的旋转,如果是这样的话?

所以要做出这三行:

glRotatef(xRotation, 1, 0, 0);
glRotatef(yRotation, 0, 1, 0);
glRotatef(zRotation, 0, 0, 1);

具有与以下相同的功能:

glRotatef(rotation, x, y, z);

0 个答案:

没有答案
相关问题