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

      我在hw7中尝试实现了下microfacet的模型,其中微表面模型采用ggx brdf, 但似乎出来的结果只有specular的效果(其中绿色墙壁材质为microfacet)。我在参考别人的实现中(https://github.com/MARMOTatZJU/GAMES101-HW/blob/master/hw7/Material.hpp#L188)发现它额外加了diffuse项。所以想问下大家,microfacet模型是只用来处理高光项还是我的实现有问题?

    • #7674 Score: 0
      Participant

      其中生成的场景如图

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

      自己思考了一些,microfacet应该确实只处理了specular的部分,掠射的光线会被直接mask掉。在另一份实现中(https://github.com/DQSSSSS/GAMES101_Assignment/blob/master/7/Material.hpp#L232)作者也单独考虑了kd项,所以我的渲染结果中只有高光区域是符合预期的(大概。

      • This reply was modified 3 years, 2 months ago by .
Viewing 2 reply threads
  • You must be logged in to reply to this topic.