Viewing 3 reply threads
  • Author
    Posts
    • #5800 Score: 0
      fuzhanzhan
      Participant

      老哥们,请问这个是怎么回事呀,spp=1或10的时候噪声都很多很多,我看别的帖子spp=1都没有噪声,是我哪里错了吗,代码一张是 castray,一张是三角形的sample,一张是最开始的选择采样点。

      Attachments:
      You must be logged in to view attached files.
    • #5804 Score: 0
      fuzhanzhan
      Participant

      补充渲染的图片

      Attachments:
      You must be logged in to view attached files.
    • #5806 Score: 0
      fuzhanzhan
      Participant

      哦我知道了,是判断is_blocked错了,因为is_blocked肯定会打中光源,要用is_blocked.distance < (x.coords – p.coords).norm()来判断被挡住

    • #5869 Score: 0
      condyy
      Participant
      2 pts

      你好,想问一句,get_random_float是不是0到1范围返回参数呢?我试验时返回的都是一个值0.5307,但注释写的是范围是1到6.你是怎么用的呢?

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