Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业七直接光照结果错误

Viewing 3 reply threads
  • Author
    Posts
    • #5697 Score: 0
      xuyonglai
      Participant
      3 pts

      作业七我先写了直接光照部分的代码,但得到的结果右半部分是黑色的,感觉思路没啥问题,是不是复制作业六的代码有问题?

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

      结果在这

      Attachments:
      You must be logged in to view attached files.
    • #5712 Score: 1
      欠你一枝花
      Participant
      4 pts

      Hello, 我发现几个问题.

      1) Bounds3::IntersectP 的返回值应该写为(tEnter <= tExit) && (tEnter >= 0)

      2) CastRay的直接光照计算后面是除法啊,你全是写的乘法。

      This post has received 1 vote up.
      • #5727 Score: 0
        李梦凡
        Participant
        1 pt

        你好,我遇到了类似的问题,通过加上等号也解决了,但是为什么一个等号能有这么大的差别,老师的PPT上我看也没有等号

    • #5714 Score: 0
      xuyonglai
      Participant
      3 pts

      你好,确实是(tEnter <= tExit) ,我已经改了过来,正在运行中,第二个我是有除号的,我截图漏掉了,谢谢你。

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