David has over 40 years of industry experience in software development and information technology and a bachelor of computer science
What is Ambient Occlusion?
Making It Real
Computers are used to fake everything these days. We use them to simulate the weather so we can generate a forecast, to simulate the progress of disease so we can create cures, and to simulate characters that can't possibly be real for the latest movie. Clearly, it's a useful thing to do.
But how do we make them so real? How do we ensure that we truly believe? There is no simple answer to that, and there are many techniques that come into play. One that plays a significant role, from a visual perspective, is ambient occlusion.
What is Ambient Occlusion?
Ambient occlusion is a computer graphics technique that simulates how light falls on an object. It affects all aspects of the object, but is most noticeable in the shadow areas.
The reason for this is because these areas are not affected by direct light, and less significantly by reflected light. Reflected light is light that bounces off of other surfaces in a scene. It comes from the term 'occlusion', which means blocked, and is part of many graphics packages today.
Consider the side-by-side images below:
![]() |
The one on the left was rendered without ambient occlusion, the one on the right, with.
Notice any differences?
The first thing you should notice is that the overall image on the right is darker. That is because ambient occlusion is simulating the effects of light more accurately, and darkening areas like the corners and interiors. The second thing you should notice is that the right image looks more realistic. This is because reality contains both dark and light, so the image appears more realistic to us.
Uses
We use ambient occlusion for two main reasons:
- Simulate realism - as mentioned, real-life contains both dark and light. So it makes sense that a 3D rendering would strive for this, particularly those that are trying to be as realistic as possible. As an example, think about the special effects in movies. They are trying to convince you that what you are seeing is real, not created in a computer.
- Reduce computation time - calculating shadows for rendering is time consuming, and as such, costs money. So efforts focus on increasing realism, and reducing computational time. As an example, consider the movie special effects mentioned above. Individual frames can take hours to calculate, so every effort is made to reduce that time.
How It Works
Interestingly, ambient occlusion works backwards from every surface in a scene. A line is calculated from every pixel (dot) on the screen that makes up a surface. The line starts out at right angles to the surface, and bounces off every surface it encounters, at an angle equal to the incident angle (like reflection). This continues until the line either reaches the light source, or is blocked.
If it reaches the light source, then the brightness of the pixel is proportional to the distance the line traveled to reach the source. Longer distances are dark, and shorter distances are light. If the line is blocked, then the light from the source can't reach the point of origin, and the pixel is the darkest it can be. The process continues for every pixel in the frame.
Given this, it's easy to see why light calculations are so expensive from a time perspective. There are literally millions of calculations performed for each frame. And the problem increases exponentially for the number of surfaces, and light sources. This is the simulation, just think of what the actual calculations would be like.
Lesson Summary
To recap, ambient occlusion is a computer graphics technique that simulates how light falls on an object. It affects to main things in an image; overall darkness, and realism. We use ambient occlusion for two reasons. First, it simulates realism, and second, it reduces computation time.
Ambient occlusion works backwards from the surface it affects, which is different than one might expect. A line is calculated from every surface pixel, then bounces off every surface it encounters, at an angle equal to the incident angle (like reflection). This continues until the line either reaches the light source, or is blocked. If it reaches the light source, then the brightness of the pixel is proportional to the distance the line traveled to reach the source.
To unlock this lesson you must be a Study.com Member.
Create your account
Register to view this lesson
Unlock Your Education
See for yourself why 30 million people use Study.com
Become a Study.com member and start learning now.
Become a MemberAlready a member? Log In
BackWhat is Ambient Occlusion?
Related Study Materials
- TExES Science of Teaching Reading (293): Practice & Study Guide
- Next Gen NCLEX-PN Study Guide & Practice
- Next Gen NCLEX-RN Study Guide & Practice
- TExES Core Subjects EC-6 (391): Practice & Study Guide
- TExES School Counselor (252): Practice & Study Guide
- Multithreading, Networking & Machine Learning in Python
- Digital Forensics
- The Internet of Things and Networking
- Network Routing and Switching
- Virtual Servers and Networking
- How to Pick Your Homeschool Curriculum
- Role of Student Support in Open & Distance Learning
- TExES Principal Exam Redesign (068 vs. 268)
- Teacher Salary by State
- ESL Resource Guide for Teachers
- What is a Homeschool Co-op?
- How to Start Homeschooling Your Children
Latest Courses
- Mechanistic & Organic Organizational Business Structures
- Chemical Nomenclature & Notation
- Factors Impacting Family & Consumer Sciences
- Heritability Coefficient
- Preparation Procedures for Aerobic & Anaerobic Bacteria Specimens
- Defense Risk Control Strategy
- Compulsory Education: Definition, Laws & History
- What are Dinosaurs Related to? - Quiz & Worksheet for Kids
- Quiz & Worksheet - Memory Hole in 1984
- Quiz & Worksheet - Types of Personality Disorders
- Quiz & Worksheet - Common Health Problems in the US
- Flashcards - Real Estate Marketing Basics
- Flashcards - Promotional Marketing in Real Estate
- Narrative Essay Topics for Teachers
- Middle School Math Worksheets
Latest Lessons
- Trigonometry: High School
- Business 101: Principles of Management
- Biology 101: Intro to Biology
- How to Choose a Career: Guidance Counseling
- History 102: Western Civilization II
- Physical Science - Volcanoes: Tutoring Solution
- 20th Century Literature - 11th Grade: Help and Review
- Quiz & Worksheet - Technology's Importance in the Classroom
- Quiz & Worksheet - Japan's Westernization During the Meiji Era
- Quiz & Worksheet - Three Sisters by Chekhov
- Quiz & Worksheet - Talking About Time in Spanish
- Quiz & Worksheet - Computer & Technology Terms in Spanish
Popular Courses
- Causes of the American Revolution: Events & Turning Points
- The Oregon Treaty of 1846: Definition & Summary
- How to Pass LPN School
- How to Pass an Excel Test
- Biomedical Engineering Summer Programs for High School
- Reading Comprehension Activities
- First Grade Word Walls: List & Activities
- 7th Grade Summer Reading List
- Business Writing Training
- What to Do When You're Rejected from All Colleges
- Activities for Kids with Cerebral Palsy
- Telling Time: Activities & Games for Kids
Popular Lessons
Math
Social Sciences
Science
Business
Humanities
Education
History
Art and Design
Tech and Engineering
- Tech and Engineering - Videos
- Tech and Engineering - Quizzes
- Tech and Engineering - Questions & Answers