Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 作业7的基础上处理其他材质

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #6003 Score: 0
      白大线
      Participant

      请问有没同学在作业7的基础上处理过其他材质,我加了个镜面反射的。总觉得又点不对,但是又有点想不通问题在哪里,下图是两个把两个box换成了mirror材质。

      Attachments:
      You must be logged in to view attached files.
    • #6009 Score: 1
      arc
      Participant
      5 pts

      我渲染的结果是这样(加上了色调映射和伽马矫正),好像是差不多的。

      This post has received 1 vote up.
      Attachments:
      You must be logged in to view attached files.
      • #6015 Score: 0
        白大线
        Participant

        非常感谢,请问你的spp是用到多少?感觉你生成的图片非常自然,特别是顶部被反射的亮光部分很好。

        • #6016 Score: 0
          arc
          Participant
          5 pts

          spp 好像是 1024。

          • #6037 Score: 0
            白大线
            Participant

            后来我发现我做法有错误。没有除以cos(wi)。代码部分修改成return reflectance / fabs(dotProduct(N, wi));渲染结果如下了。

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

      请问可以看一下您的镜面材质的代码吗,我也在实现这个

      • #7231 Score: 0
        jz
        Participant

        按你说的除以cos(wi)后好像和你的效果一样了

        Attachments:
        You must be logged in to view attached files.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.