Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业5:i、j和x、y存在着怎样的关系?

Viewing 5 reply threads
  • Author
    Posts
    • #4862 Score: 0
      6君
      Participant
      1 pt

      作业5:i、j和x、y存在着怎样的关系?

    • #4863 Score: 0
      6君
      Participant
      1 pt

      我过了两遍13课视频,好像并没有找到有讲到这个东西,讲到的知识点整理了也没发现在哪里

    • #4864 Score: 0
      6君
      Participant
      1 pt

      (x+0.5)/scene.width – eye_pos.x;

      Attachments:
      You must be logged in to view attached files.
    • #4868 Score: 2
      Songsong
      Participant
      4 pts

      i,j指的是实际上的像素点(范围是0-w or h)。需要反向映射回世界坐标系中的点,可以标准化后得到[-1,1]空间内,通过tan 和宽高比复原回在z = -1处成像的尺寸,就是实际的坐标

      This post has received 2 votes up.
    • #4877 Score: -1
      6君
      Participant
      1 pt

      知道了,映射到NDC空间(0到1的范围)再到屏幕空间(-1到1的范围)再到世界坐标(y取反)

      This post has received 1 vote down.
    • #4881 Score: 1
      kingil
      Participant
      1 pt

      个人理解跟NDC没关系。你非要联系上去也没问题,只不过理解上会更复杂难懂。可以完全抛开光栅化矩阵管线来理解
      就是一个二维的平面映射,最后还取了特殊情况。
      可以参考我们的讨论

      作业5Primary Ray的理解和计算问题

      This post has received 1 vote up.
Viewing 5 reply threads
  • You must be logged in to reply to this topic.