半片橘子

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: 作业一、二中投影矩阵问题 #8188 Score: 0
    半片橘子
    Participant

    n/r, 0, 0, 0,
    0, n/t , 0, 0,
    0, 0, (zNear + zFar)/(zNear – zFar),-2* zNear * zFar/(zNear – zFar),
    0, 0, 1, 0;

    in reply to: 作业一、二中投影矩阵问题 #8187 Score: 0
    半片橘子
    Participant

    透视矩阵写错了!应该是:
    [n , 0, 0, 0
    0 ,n, 0, 0
    0 ,0 ,-(n+f), n*f
    0, 0, 0, 1 ]

    所以最终矩阵应该是:
    n/r, 0, 0, 0,
    0, n/t , 0, 0,
    0, 0, 1,-2* zNear * zFar/(zNear – zFar),
    0, 0, 1, 0;

    以上是我自己算的,其实到底是不是对的我也没有准确把握,如果有错,希望能够指出

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