Screen space ambient occlusion explained

Screen space ambient occlusion (SSAO) is a computer graphics technique for efficiently approximating the ambient occlusion effect in real time. It was developed by Vladimir Kajalin while working at Crytek and was used for the first time in 2007 by the video game Crysis, also developed by Crytek.[1]

Implementation

The algorithm is implemented as a pixel shader, analyzing the scene depth buffer which is stored in a texture. For every pixel on the screen, the pixel shader samples the depth values around the current pixel and tries to compute the amount of occlusion from each of the sampled points. In its simplest implementation, the occlusion factor depends only on the depth difference between sampled point and current point.

Without additional smart solutions, such a brute force method would require about 200 texture reads per pixel for good visual quality. This is not acceptable for real-time rendering on current graphics hardware. In order to get high quality results with far fewer reads, sampling is performed using a randomly rotated kernel. The kernel orientation is repeated every N screen pixels in order to have only high-frequency noise in the final picture. In the end this high frequency noise is greatly removed by a NxN post-process blurring step taking into account depth discontinuities (using methods such as comparing adjacent normals and depths). Such a solution allows a reduction in the number of depth samples per pixel to about 16 or fewer while maintaining a high quality result, and allows the use of SSAO in soft real-time applications like computer games.

Compared to other ambient occlusion solutions, SSAO has the following advantages:

SSAO also has the following disadvantages:

See also

External links

Notes and References

  1. Web site: What is Ambient Occlusion? Does it Matter in Games? .
  2. Web site: Tobias Ritschel. Thorsten Grosch. Hans-Peter Seidel. Approximating Dynamic Global Illumination in Image Space. Proceedings ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games. 25 November 2015. 2009.