• This topic has 2 replies, 3 voices, and was last updated 4 years ago by zpo.
Viewing 2 reply threads
  • Author
    Posts
    • #3321 Score: 0
      wffancy
      Participant
      1 pt

      投影矩阵设置的fov为45度,相机在原点朝向-z方向,为什么(0,2,-2)这样的点会落在frustum里呢,在z=-2这个平面上xy的显示范围不应该是-0.84~0.84(2*tan(22.5))吗?求教!

    • #3338 Score: 1
      slongle(助教)
      Keymaster
      13 pts

      要算摄像机到点的距离,所以应该是7,xy的范围是+/-2.899(7*tan(22.5))。

      This post has received 1 vote up.
    • #3749 Score: 0
      zpo
      Participant

      楼主应该是没考虑view/camera transformation吧,框架代码里相机的位置在(0,0,5)
      Eigen::Vector3f eye_pos = {0, 0, 5};

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