Screen space ambient occlusion
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, developed by Crytek and published by Electronic Arts.
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:
- Independent from scene complexity.
- No data pre-processing needed, no loading time and no memory allocations in system memory.
- Works with dynamic scenes.
- Works in the same consistent way for every pixel on the screen.
- No CPU usage – it can be executed completely on the GPU.
- May be easily integrated into any modern graphics pipeline.
Of course it has its disadvantages as well:
- Rather local and in many cases view-dependent, as it is dependent on adjacent texel depths which may be generated by any geometry whatsoever.
- Hard to correctly smooth/blur out the noise without interfering with depth discontinuities, such as object edges (the occlusion should not "bleed" onto objects).
In video games
See also
References
- ↑ "Alan Wake FAQ – Alan Wake Community Forums". Forum.alanwake.com. Retrieved 2011-08-26.
- ↑ http://geekmontage.com/texts/game-fixes-amnesia-the-dark-descent-crashing-lag-black-screen-freezing-sound-fixes/
- ↑ "Ask Bohemia (about Operation Arrowhead... or anything else you want to ask)! – Bohemia Interactive Community". Community.bistudio.com. 2010-05-06. Retrieved 2011-08-26.
- ↑ http://www.bit-tech.net/gaming/pc/2010/10/25/arcania-gothic-4-review/1
- ↑ "Face-Off: Assassin's Creed: Brotherhood – Page 2 | DigitalFoundry". Eurogamer.net. 2010-11-18. Retrieved 2011-08-26.
- ↑ "Assassins Creed: Brotherhood PC Performance Analysis". Dasreviews.com. 2011-02-14. Retrieved 2012-05-10.
- ↑ "Assassin's Creed IV Black Flag - GeForce". Nvidia.
- ↑ "A man dressed like a bat: Arkham Origins – PC Features Further Explained & Demonstrated". DSOGaming. September 8, 2013. Retrieved 2013-09-08.
- ↑ http://publications.dice.se/attachments/BF3_NFS_WhiteBarreBrisebois_Siggraph2011.pdf
- ↑ http://www.guru3d.com/news/battlefield-bad-company-2-directx-11-details-/
- ↑ "AMD's Radeon HD 5850: The Other Shoe Drops". AnandTech. Retrieved 2011-08-26.
- ↑ "Head2Head: Bionic Commando". Lens of Truth. 2009-05-29. Retrieved 2011-08-26.
- ↑ "Head2Head: Borderlands Analysis". Lens of Truth. 2009-10-29. Retrieved 2011-08-26.
- ↑ "Borderlands 2 Gameplay Performance and IQ Review". HardOCP. 2012-10-01.
- ↑ "Benchmarks: SSAO Enabled : Burnout Paradise: The Ultimate Box, Performance Analysis". Tomshardware.com. Retrieved 2011-08-26.
- ↑ http://community.callofduty.com/thread/4682
- ↑ "Issue 17: Dark Mirror Patch Notes | City of Heroes® : The Worlds Most Popular Superpowered MMO". Cityofheroes.com. Retrieved 2011-08-26.
- 1 2 "CryENGINE® 2". Crytek. Retrieved 2011-08-26.
- ↑ http://crytek.com/sites/default/files/Crysis%202%20Key%20Rendering%20Features.pdf
- ↑ "Daylight - GeForce". Nvidia.
- ↑ http://www.eurogamer.net/articles/digitalfoundry-dead-island-face-off
- ↑ "Dead Space 3 PC Graphics Settings Rundown". GameFront. February 5, 2013.
- ↑ http://www.eurogamer.net/articles/deus-ex-human-revolution-face-off
- ↑ http://www.techspot.com/review/374-dragon-age-2-performance-test/
- ↑ "Empire: Total War – No anti-aliasing in combination with SSAO on Radeon graphics cards – Empire Total War, anti-aliasing, SSAO, Radeon, Geforce" (in German). PC Games Hardware. 2009-03-11. Retrieved 2011-08-26.
- ↑ CCP. "EVE Insider | Patchnotes". EVE Online. Retrieved 2011-08-26.
- ↑ http://www.pcgameshardware.com/aid,675766/Fear-2-Project-Origin-GPU-and-CPU-benchmarks-plus-graphics-settings-compared/Reviews/
- ↑ http://imagequalitymatters.blogspot.com/2011/03/tech-analysis-fight-night-champion-360_12.html
- ↑ "Gears of War Series | Showcase | Unreal Technology". Unrealengine.com. 2008-11-07. Retrieved 2011-08-26.
- ↑ "Bungie Weekly Update: 04.16.10 : 4/16/2010 3:38 PM PDT". Bungie.net. Retrieved 2011-08-26.
- ↑ "Halo: Reach beta footage analysis – Page 1 | DigitalFoundry". Eurogamer.net. 2010-04-25. Retrieved 2011-08-26.
- ↑ http://store.steampowered.com/news/5321/?l=russian
- ↑ http://imagequalitymatters.blogspot.com/2010/07/tech-analsis-infamous-2-early-screens.html
- ↑ http://www.lensoftruth.com/head2head-blood-stone-007-hd-screenshot-comparison/
- ↑ http://ve3d.ign.com/articles/features/53469/Just-Cause-2-PC-Interview
- ↑ "Face-Off: L.A. Noire – Page 1 | DigitalFoundry". Eurogamer.net. 2011-05-23. Retrieved 2011-08-26.
- ↑ http://imagequalitymatters.blogspot.com/2010/08/tech-analysis-mafia-ii-demo-ps3-vs-360.html
- ↑ http://www.eurogamer.net/articles/digitalfoundry-mafia-ii-demo-showdown
- ↑ http://www.eurogamer.net/articles/metro-2033-4a-engine-impresses-blog-entry
- ↑ http://www.pcgameshardware.com/aid,705532/Napoleon-Total-War-CPU-benchmarks-and-tuning-tips/Practice/
- ↑ http://i68.servimg.com/u/f68/18/08/43/87/2016-012.jpg
- ↑ http://www.eurogamer.net/articles/digitalfoundry-red-faction-guerilla-pc-tech-comparison?page=2
- ↑ "Risen Tuning Tips: Activate Anti Aliasing, improve graphics and start the game faster – Risen, Tipps, Anti Aliasing, Graphics Enhancements" (in German). PC Games Hardware. 2009-10-06. Retrieved 2011-08-26.
- ↑ http://www.pcgameshardware.com/aid,699424/Stalker-Call-of-Pripyat-DirectX-11-vs-DirectX-10/Practice/
- ↑ "STALKER: Clear Sky Tweak Guide". TweakGuides.com. Retrieved 2011-08-26.
- ↑ http://mgnews.ru/read-news/otvety-glavnogo-dizajnera-shattered-horizon-na-vashi-voprosy
- ↑ http://www.eurogamer.net/articles/digitalfoundry-face-off-saints-row-the-third
- ↑ http://steamcommunity.com/games/233130/announcements/detail/1514635113343703993
- ↑ "Slender: The Arrival". Parsec Productions. Retrieved 2013-05-03.
- ↑ "Sleeping Dogs Gameplay Performance and IQ Review". HardOCP. 2012-10-02.
- ↑ Entertainment, Blizzard (2011-08-19). "Patch 1.2.0 Now Live – StarCraft II". Us.battle.net. Retrieved 2011-08-26.
- ↑ http://www.doublefine.com/forums/viewthread/8547/#261785
- ↑ "The Settlers 7: Paths to a Kingdom – Engine". YouTube. 2010-03-21. Retrieved 2011-08-26.
- ↑ http://www.pcgamer.com/2011/05/25/the-witcher-2-tweaks-guide/
- ↑ "Splinter Cell: Blacklist – PC Features Detailed + New Footage". DSOGaming. June 18, 2013.
- ↑ "Tom Clancy's Splinter Cell Blacklist: Digital Deluxe Edition Now Bundled With GeForce GTX Graphics Cards". Nvidia. July 9, 2013.
- ↑ http://tomclancy-thedivision.ubi.com/game/en-US/news/152-241765-16/the-division-day-1-patch-notes
- ↑ http://www.eurogamer.net/articles/digitalfoundry-xbox360-vs-ps3-round-27-face-off?page=2
- ↑ "Among Friends: How Naughty Dog Built Uncharted 2 – Page 3 | DigitalFoundry". Eurogamer.net. 2010-03-20. Retrieved 2011-08-26.
- ↑ Tobias Ritschel; Thorsten Grosch; Hans-Peter Seidel (2009). "Approximating Dynamic Global Illumination in Image Space". Proceedings ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games. Retrieved 25 November 2015.
External links
- Finding Next Gen – CryEngine 2
- Video showing SSAO in action
- Image Enhancement by Unsharp Masking the Depth Buffer
- Hardware Accelerated Ambient Occlusion Techniques on GPUs
- Overview on Screen Space Ambient Occlusion Techniques
- Real-Time Depth Buffer Based Ambient Occlusion
- Source code of SSAO shader used in Crysis
- Approximating Dynamic Global Illumination in Image Space
- Accumulative Screen Space Ambient Occlusion
- NVIDIA has integrated SSAO into drivers
- Several methods of SSAO are described in ShaderX7 book
- SSAO Shader ( Russian )
- SSAO Tutorial, extension of the technique used in Crysis