Home Forums Games202-高质量实时渲染 PCSS效果很奇怪

Viewing 2 reply threads
  • Author
    Posts
    • #8007 Score: 0
      abcd1234
      Participant

      如题,在用PCSS的时候,我设置的光源宽度为10,采样数256,出来的效果如图所示,不知道是否是代码出现了问题,在我的理解中,PCSS应该就是在findblocker中计算出平均遮挡深度,然后,通过相似三角形的计算求出所谓的filtersize,最后,直接调用PCF即可,代码如图所示,不知道是否是PCSS理解有误:

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

      我猜可能是光源宽度过大(建议尝试调至0.1甚至0.01的数量级)以及findBlocker函数中filterSize的计算方式不对,这里不应该去sample shadow map,而是应该用near plane的值。可以先用固定的blocker search region(e.g. 16×16 texel)看一下结果对不对排除一些其他错误的可能。希望有帮助:)

    • #16797 Score: 0
      radimhrudka
      Participant

      The screenshot is excellent, thanks for the positive words that start with s list. These positive words that start with v are truly incredible.

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