Viewing 3 reply threads
  • Author
    Posts
    • #5348 Score: 0
      助教
      Keymaster
      14 pts

      大家好,GAMES101课程的作业7现在发布。

      我们在games, smartchair放了两份完全相同的备份,请大家根据网络环境自行选择下载途径。

      这次作业的截止时间是北京时间4月21日晚上23:59.

      注意:本次作业难度不低,且运行时间较长,请尽早开始完成。

      games的作业7链接

      smartchair的作业7链接

      • This topic was modified 2 years, 5 months ago by 助教.
      • This topic was modified 2 years, 5 months ago by 助教.
      • This topic was modified 2 years, 5 months ago by 助教.
      • This topic was modified 2 years, 5 months ago by 助教.
      • This topic was modified 2 years, 5 months ago by 助教.
      • This topic was modified 2 years, 5 months ago by 助教.
      • This topic was modified 2 years, 5 months ago by 助教.
    • #5350 Score: 0
      助教
      Keymaster
      14 pts

      本层楼将用于持续更新可能普遍存在的问题,遇到困难时请首先查阅本楼寻找相似问题!


      1、如果出现 http://games-cn.org/forums/topic/zuoyeqiguangxianxiangjiaoceshiyichang/ 所描述的部分平面相交被判定为 MISS 的问题,请注意判定 Bounding Box 与 Ray 相交时的边界是 t_enter <= t_exit,而不是 t_enter < t_exit. 此外,你还需要注意此判断的精度问题。


      2、如果出现 http://games-cn.org/forums/topic/zuoyeqixuanrandejieguotaian/ 所描述的渲染结果较暗,出现横向黑色条纹的情况,很可能是因为直接光部分由于精度问题,被错误判断为遮挡,请试着通过精度调整放宽相交限制。


      3、注意本框架中直接光部分 Intersection.emit 是采样得到的光源的 emission (Li),Vector3f.norm() 返回的是向量的长度而非长度平方。

      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
      • This reply was modified 2 years, 5 months ago by 助教.
    • #9925 Score: 0
      liyuan
      Participant

      求问 现在还有作业讨论群嘛?想问个问题 渲染结果 看不到color bleeding

      Attachments:
      You must be logged in to view attached files.
    • #9949 Score: 3
      acticn
      Participant
      3 pts

      global.hpp下的get_random_float()随机数生成函数存在问题。
      会导致在重复调用该函数时,返回同一个值。

      我的解决方案是把其中定义的dev,rng,dist在main.cpp中定义为全局变量。
      修改后的main.cpp和global.hpp在附件中。

      This post has received 3 votes up.
      Attachments:
      You must be logged in to view attached files.
      • #10259 Score: 0
        Linyan
        Participant

        感谢,之前一直不对,花了两个小时没看出任何毛病,换成这个就好了。。。还贼快orz

      • #10802 Score: 1
        ViXbob
        Participant
        1 pt

        十分感谢,修改之后速度快了几十倍 ORZ

        另外,其实直接在三个变量的定义前面加上static关键字就可以了。

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