标签: c opengl matrix
我很确定设置代码应如下所示:
function setPYR(float pitch, float yaw, float roll) { glLoadIdentity(); glRotatef(pitch, 1, 0, 0); glRotatef(yaw, 0, 1, 0); glRotatef(roll, 0, 0, 1); }
如何从当前的模型视图矩阵中获得俯仰,偏航和滚动?
答案 0 :(得分:1)
查看The Matrix and Quaternions FAQ。