misskanagi

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: 【作业2】环境光球谐旋转推导 #8644 Score: 0
    misskanagi
    Participant

    正确的“mat4Matrix2mathMatrix”函数的实现应该是把最后的return math.matrix(mathMatrix);变成return math.transpose(math.matrix(mathMatrix));

    这句话错了,请无视。

    in reply to: 【作业2】环境光球谐旋转推导 #8643 Score: 0
    misskanagi
    Participant

    “mat4Matrix2mathMatrix”这个函数确实是“误打误撞”用对了,这个函数把列优先存储的矩阵转换成了行优先存储的矩阵,这样相当于对矩阵做了一次转置,而旋转矩阵是一个正交矩阵,对旋转矩阵转置相当于求出了该旋转矩阵的逆矩阵

    正确的“mat4Matrix2mathMatrix”函数的实现应该是把最后的return math.matrix(mathMatrix);变成return math.transpose(math.matrix(mathMatrix));

    另外#8284回复最后的Hint确实需要仔细琢磨一下。

Viewing 2 posts - 1 through 2 (of 2 total)