Viewing 6 reply threads
  • Author
    Posts
    • #3704 Score: 0
      miracleone
      Participant

      不知道为啥,似乎是x方向的坐标不太正确

      Attachments:
      You must be logged in to view attached files.
    • #3716 Score: 0
      miracleone
      Participant

      代码

      Attachments:
      You must be logged in to view attached files.
    • #3718 Score: 0
      xuyonglai
      Participant
      3 pts

      这部分代码看着没啥问题

    • #3719 Score: 0
      miracleone
      Participant

      另一部分代码

      Attachments:
      You must be logged in to view attached files.
      • #3739 Score: 0
        sublimation
        Participant
        3 pts

        inside_triangle参数是int,但是传入的是float

    • #3740 Score: 0
      zyk
      Participant
      6 pts

      我觉得可能是你的透视矩阵有问题?贴一下透视矩阵的代码?

      • #3742 Score: 0
        miracleone
        Participant

        透视投影矩阵

        Attachments:
        You must be logged in to view attached files.
        • #3745 Score: 0
          miracleone
          Participant

          透视投影错了,比例设置错了,谢谢

          • #3747 Score: 0
            zyk
            Participant
            6 pts

            矩阵写成4行4列对齐???你全写成一行容易出错

    • #3746 Score: 0
      sublimation
      Participant
      3 pts

      在计算xn的时候不应该*2

    • #3751 Score: 0
      6君
      Participant
      1 pt

      别的先不说,说一个比较明显的错误ortho=move*ortho这里的矩阵相乘顺序反了,矩阵不满足乘法交换律,所以这里应该是ortho=缩放矩阵*平移矩阵吧,举个栗子(PS:当然了,我这里没用矩阵,不过道理应该差不多):假如刚开始的位置是0,先平移1,再缩放2–(0+1)*2=2;如果按你的写法:先缩放再平移–0*2+1=1。

Viewing 6 reply threads
  • You must be logged in to reply to this topic.