Viewing 1 reply thread
  • Author
    Posts
    • #9238 Score: 1
      Zbcxcj
      Participant
      1 pt

      这个问题相信不少人都遇到过
      主要的问题就是在代码里面,zNear 和 zFar 被定义为 0.1 和 50,是正数
      但是用于求坐标变换时,三个点的 z 值都是负的
      所以如果 透视转正交矩阵 的第四列写成 0, 0, 1, 0的 话
      最后求的坐标都会颠倒
      所以最简单做法就是把第四列写成 0, 0, -1, 0

      This post has received 1 vote up.
    • #9735 Score: 0
      Rakastan
      Participant

      完美解决问题

Viewing 1 reply thread
  • You must be logged in to reply to this topic.