← Back to results

Ambient occlusion - Wikipedia Jump to content Main menu

Main menu move to sidebar hide Navigation Main page Contents Current events Random article About Wikipedia Contact us Contribute Help Learn to edit Community portal Recent changes Upload file Special pages Search Search Appearance Donate Create account Log in Personal tools Donate Create account Log in Contents move to sidebar hide (Top) 1 Implementation Toggle Implementation subsection 1.1 Variants 2 Recognition 3 See also 4 References Toggle the table of contents Ambient occlusion 13 languages Čeština Deutsch Español فارسی Français Italiano 한국어 Polski Русский Simple English Türkçe Українська 中文 Edit links Article Talk English Read Edit View history Tools Tools move to sidebar hide Actions Read Edit View history General What links here Related changes Upload file Permanent link Page information Cite this page Get shortened URL Print/export Download as PDF Printable version In other projects Wikidata item Appearance move to sidebar hide From Wikipedia, the free encyclopedia Computer graphics shading and rendering technique The ambient occlusion map (middle image) for this scene darkens only the innermost angles of corners. In 3D computer graphics , modeling , and animation , ambient occlusion is a shading and rendering technique used to calculate how exposed each point in a scene is to ambient lighting . For example, the interior of a tube is typically more occluded (and hence darker) than the exposed outer surfaces, and becomes darker the deeper inside the tube one goes. Ambient occlusion can be seen as an accessibility value that is calculated for each surface point. [ 1 ] In scenes with open sky this is done by estimating the amount of visible sky for each point, while in indoor environments only objects within a certain radius are taken into account and the walls are assumed to be the origin of the ambient light. The result is a diffuse , non-directional shading effect that casts no clear shadows, but that darkens enclosed and sheltered areas and can affect the rendered image's overall tone. It is often used as a post-processing effect. Unlike local methods such as Phong shading , ambient occlusion is a global method, meaning that the illumination at each point is a function of other geometry in the scene. However, it is a very crude approximation to full global illumination . The appearance achieved by ambient occlusion alone is similar to the way an object might appear on an overcast day. The first method that allowed simulating ambient occlusion in real time was developed by the research and development department of Crytek ( CryEngine 2 ). [ 2 ] With the release of hardware capable of real time ray tracing ( GeForce 20 series ) by Nvidia in 2018, ray traced ambient occlusion (RTAO) became possible in games and other real time applications. [ 3 ] This feature was added to the Unreal Engine with version 4.22. [ 4 ] Implementation [ edit ] 3D animation of ambient occlusion enabled on the animation to the right In the absence of hardware-assisted ray traced ambient occlusion, real-time applications such as computer games can use screen space ambient occlusion (SSAO) techniques such as horizon-based ambient occlusion including HBAO and ground-truth ambient occlusion (GTAO) as a faster approximation of true ambient occlusion, using per-pixel depth , rather than scene geometry, to form an ambient occlusion map . Ambient occlusion is related to accessibility shading, which determines appearance based on how easy it is for a surface to be touched by various elements (e.g., dirt, light, etc.). It has been popularized in production animation due to its relative simplicity and efficiency. The ambient occlusion shading model offers a better perception of the 3D shape of the displayed objects. This was shown in a paper where the authors report the results of perceptual experiments showing that depth discrimination under diffuse uniform sky lighting is superior to that predicted by a direct lighting model. [ 5 ] The occlusion A p ¯ {\displaystyle A_{\bar {p}}} at a point p ¯ {\displaystyle {\bar {p}}} on a surface with normal n ^ {\displaystyle {\hat {n}}} can be computed by integrating the visibility function over the hemisphere Ω {\displaystyle \Omega } with respect to projected solid angle: A p ¯ = 1 π ∫ Ω V p ¯ , ω ^ ( n ^ ⋅ ω ^ ) d ⁡ ω {\displaystyle A_{\bar {p}}={\frac {1}{\pi }}\int _{\Omega }V_{{\bar {p}},{\hat {\omega }}}({\hat {n}}\cdot {\hat {\omega }})\,\operatorname {d} \omega } where V p ¯ , ω ^ {\displaystyle V_{{\bar {p}},{\hat {\omega }}}} is the visibility function at p ¯ {\displaystyle {\bar {p}}} , defined to be zero if p ¯ {\displaystyle {\bar {p}}} is occluded in the direction ω ^ {\displaystyle {\hat {\omega }}} and one otherwise, and d ⁡ ω {\displaystyle \operatorname {d} \omega } is the infinitesimal solid angle step of the integration variable ω ^ {\displaystyle {\hat {\omega }}} . A variety of techniques are used to approximate this integral in practice: perhaps the most straightforward way is to use the Monte Carlo method by casting rays from the point p ¯ {\displaystyle {\bar {p}}} and testing for intersection with other scene geometry (i.e., ray casting ). Another approach (more suited to hardware acceleration) is to render the view from p ¯ {\displaystyle {\bar {p}}} by rasterizing black geometry against a white background and taking the (cosine-weighted) average of rasterized fragments. This approach is an example of a "gathering" or "inside-out" approach, whereas other algorithms (such as depth-map ambient occlusion) employ "scattering" or "outside-in" techniques. In addition to the ambient occlusion value, a "bent normal" vector n ^ b {\displaystyle {\hat {n}}_{b}} is often generated, which points in the average direction of occluded samples. The bent normal can be used to look up incident radiance from an environment map to approximate image-based lighting . However, there are some situations in which the direction of the bent normal is a misrepresentation of the dominant direction of illumination, e.g., In this example the bent normal N b has a direction that does not allow it to illuminate the scene as it is pointing at an occluded surface. In this example, light may reach the point p only from the left or right sides, but the bent normal points to the average of those two sources, which is directly toward the obstruction. Variants [ edit ] Screen space ambient occlusion (SSAO) Screen space directional occlusion (SSDO) Ray-traced ambient occlusion (RTAO) High Definition Ambient Occlusion (HDAO) Horizon Based Ambient Occlusion+ (HBAO) Alchemy Ambient Occlusion (AAO) Angle Based Ambient Occlusion (ABAO) Pre Baked Ambient Occlusion (PBAO) Voxel Accelerated Ambient Occlusion (VXAO) Ground Truth based Ambient Occlusion (GTAO) [ 6 ] Recognition [ edit ] In 2010, Hayden Landis, Ken McGaugh and Hilmar Koch were awarded a Scientific and Technical Academy Award for their work on ambient occlusion rendering. [ 7 ] See also [ edit ] Global illumination Photon mapping Radiosity Ray tracing High-dynamic-range rendering Blender (software) References [ edit ] ^ Miller, Gavin (1994). "Efficient algorithms for local and global accessibility shading". Proceedings of the 21st annual conference on Computer graphics and interactive techniques . pp.  319– 326. ^ "AMBIENT OCCLUSION: AN EXTENSIVE GUIDE ON ITS ALGORITHMS AND USE IN VR" . ARVIlab . Retrieved 2018-11-26 . ^ Ray Traced Ambient Occlusion . Nvidia. Archived from the original on 2021-12-12. ^ "Unreal Engine Adds Support for DX12 Raytracing" . ExtremeTech . ^ Langer, M.S.; H. H. Buelthoff (2000). "Depth discrimination from shading under diffuse lighting". Perception . 29 (6): 649– 660. CiteSeerX   10.1.1.69.6103 . doi : 10.1068/p3060 . PMID   11040949 . S2CID   11700764 . ^ "Practical Realtime Strategies for Accurate Indirect Occlusion" (PDF) . ^ Oscar 2010: Scientific and Technical Awards , Alt Film Guide , Jan 7, 2010 v t e Texture mapping techniques Local Displacement mapping Normal mapping Parallax mapping UV mapping UVW mapping Relief mapping Alpha mapping Bump mapping Occlusion mapping Specular mapping Environment Cube mapping Sphere mapping Environment mapping Retrieved from " https://en.wikipedia.org/w/index.php?title=Ambient_occlusion&oldid=1291767983 " Categories : Shading Global illumination algorithms Hidden categories: Articles with short description Short description matches Wikidata Articles containing video clips This page was last edited on 23 May 2025, at 08:13  (UTC) . Text is available under the Creative Commons Attribution-ShareAlike 4.0 License ; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy . Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. , a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Legal & safety contacts Code of Conduct Developers Statistics Cookie statement Mobile view Search Search Toggle the table of contents Ambient occlusion 13 languages Add topic