Home Forums Games202-高质量实时渲染 [作业4]关于E(mu)重要性采样的问题

Tagged: 

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by lav.
Viewing 2 reply threads
  • Author
    Posts
    • #10164 Score: 0
      Cai0322
      Participant

      在计算E(mu)时,我使用了Heitz这篇论文的supplemental中给出的算法:
      https://hal.inria.fr/hal-00996995v2/file/supplemental1.pdf
      但是最后计算出来的图片有一些奇怪(见NoV);它的左下角没有pdf中给出的图那么黑。
      我尝试把schlick模型改成了Walter 07年论文里那个,得到了Walter.png,感觉差的更远了。因为N这里本来就是(0,0,1)所以应该也不是没有project到tangent space的问题(我自己验证过)。
      我之后也尝试了pdf给出的Walter 07年的算法,就得到了pdf的结果,这就让我有些百思不得其解了。
      所以我想请教下大家是我的代码哪里写错了了还是算法本身的问题?
      代码见附件,采样代码的算法和supplemental里的完全一样。

      • This topic was modified 2 years, 3 months ago by Cai0322.
      Attachments:
      You must be logged in to view attached files.
    • #10170 Score: 0
      Cai0322
      Participant

      这里是我的一些其他代码

      Attachments:
      You must be logged in to view attached files.
    • #11313 Score: -1
      lav
      Participant
      -1 pt

      直接用作业给的ggx Sample就好啊

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