This is my SSAO implementation by useing D3DX9 API. I had tried some other solutions, and this is the best SSAO algorithm that I can found to gives good result.

 If you have a better solution, please let me know, thant you!

 

 the follow picture show the steps of my implementation:

SSAO (Screen Space Ambient Occlusion) with D3DX9

 

 my demo screenshot:

 1) use simple blur

 SSAO (Screen Space Ambient Occlusion) with D3DX9

 2) use gaussian blur

 SSAO (Screen Space Ambient Occlusion) with D3DX9

 

 the below picture is the screenshot of another SSAO solution I had tried:

 SSAO (Screen Space Ambient Occlusion) with D3DX9

 

 

you can download the sourcecode from here.

Tips :

 In my demo, you can view the argb buffer when press key 'C'.

相关文章:

  • 2022-01-26
  • 2022-01-13
  • 2021-08-06
  • 2021-09-18
  • 2021-09-02
  • 2021-05-24
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案