Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 第13讲光线追踪 光线和AABB的某pair平行

  • This topic has 4 replies, 5 voices, and was last updated 1 year ago by waqia.
Viewing 4 reply threads
  • Author
    Posts
    • #4901 Score: 0
      欠你一枝花
      Participant
      4 pts

      RT,我在思考如果包围盒的某个pair slab与光线平行,那么
      The ray enters the box only when it enters all pairs of slabs这个条件就不满足了呀,这个该怎么处理呢?

      向各位大佬请教~,蟹蟹

      Attachments:
      You must be logged in to view attached files.
    • #4907 Score: 1
      xxrl
      Participant
      1 pt

      我的理解是 光线与pair slab平行的话,就相当于光线永远在pair slab里面(没有交点,t无解=>t(min) = -inf, t(max) = inf), 然后取max和min操作时就不会影响其他维度了

      This post has received 1 vote up.
    • #4913 Score: 1
      禹鹏(助教)
      Keymaster
      9 pts

      平行的时候我们只要判断光线是不是在pair slab中间。如果不是那肯定就不和box相交。否则必相交。

      This post has received 1 vote up.
    • #4925 Score: 1
      slongle(助教)
      Keymaster
      12 pts

      就算平行这个条件还是满足的呀。而且正常求解的话,方向为0的那维求出来就是+inf和-inf,对结果没有影响。

      This post has received 1 vote up.
    • #8199 Score: 0
      waqia
      Participant
      1 pt

      这种情况下,如果除法的分母是0,不会报错吗?

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