Sony Pixel Power calrec Sony

What Is Direct and Indirect Lighting?

04/08/2022

Imagine hiking to a lake on a summer day - sitting under a shady tree and watching the water gleam under the sun.

In this scene, the differences between light and shadow are examples of direct and indirect lighting.

The sun shines onto the lake and the trees, making the water look like it's shimmering and the leaves appear bright green. That's direct lighting. And though the trees cast shadows, sunlight still bounces off the ground and other trees, casting light on the shady area around you. That's indirect lighting.

For computer graphics to immerse viewers in photorealistic environments, it's important to accurately simulate the behavior of light to achieve the proper balance of direct and indirect lighting.

What Is Direct and Indirect Lighting? Light shining onto an object is called direct lighting.

It determines the color and quantity of light that reaches a surface from a light source, but ignores all light that may arrive at the surface from any other sources, such as after reflection or refraction. Direct lighting also determines the amount of the light that's absorbed and reflected by the surface itself.

Direct lighting from the sun and sky. Light bouncing off a surface, illuminating other objects is called indirect lighting. It arrives at surfaces from everything except light sources. In other words, indirect lighting determines the color and quantity of all other light that arrives at a surface. Most commonly, indirect light is reflected from one surface onto other surfaces.

Indirect lighting generally tends to be more difficult and expensive to compute than direct lighting. This is because there is a substantially larger number of paths that light can take between the light emitter and the observer.

Direct and indirect lighting in the same setting. What Is Global Illumination? Global illumination is the process of computing the color and quantity of all light both direct and indirect that is on visible surfaces in a scene.

Accurately simulating all types of indirect light is extremely difficult, especially if the scene includes complex materials such as glass, water and shiny metals - or if the scene has scattering in clouds, smoke, fog or other elements known as volumetric media.

As a result, real-time graphics solutions for global illumination are typically limited to computing a subset of the indirect light - commonly for surfaces with diffuse (aka matte) materials.

How Are Direct and Indirect Lighting Computed? Many algorithms can be used for computing direct lighting, all of which have strengths and weaknesses. For example, if the scene has a single light and no shadows, direct illumination is trivial to compute, but it won't look very realistic. On the other hand, when a scene has multiple light sources, processing them all for each surface can become expensive.

To tackle these issues, optimized algorithms and shading techniques were developed, such as deferred or clustered shading. These algorithms reduce the number of surface and light interactions to be computed.

Shadows can be added through a number of techniques, including shadow maps, stencil shadow volumes and ray tracing.

Shadow mapping has two steps. First, the scene is rendered from the light's point of view into a special texture called the shadow map. Then, the shadow map is used to test whether surfaces visible on the screen are also visible from the light's point of view. Shadow maps come with many limitations and artifacts, and quickly become expensive as the number of lights in the scene increases.

Stencil shadows in Doom 3' (2004). Image source: Wikipedia. Stencil shadow volumes are based on extruding scene geometry away from the light, and rendering that extruded geometry into the stencil buffer. The contents of the stencil buffer are then used to determine if a given surface on the screen is in shadow or not. Stencil shadows are always sharp, unnaturally so, but they don't suffer from common shadow map problems.

Until the introduction of NVIDIA RTX technology, ray tracing was too costly to use when computing shadows. Ray tracing is a method of rendering in graphics that simulates the physical behavior of light. Tracing the rays from a surface on the screen to a light allows for the computation of shadows, but this can be challenging if the light comes from one point. And ray-traced shadows can quickly get expensive if there are many lights in the scene.

More efficient sampling methods were developed to reduce the number of rays required to compute soft shadows from multiple lights. One example is an algorithm called ReSTIR, which calculates direct lighting from millions of lights and shadows with ray tracing at interactive frame rates.

Direct illumination and ray-traced shadows created with ReSTIR, compared to a previous algorithm. What Is Path Tracing? For indirect lighting and global illumination, even more methods exist. The most straightforward is called path tracing, where random light paths are simulated for each visible surface. Some of these paths reach lights and contribute to the finished scene, while others do not.

Path tracing is the most accurate method capable of producing results that fully represent lighting in a scene, matching the accuracy of mathematical models for materials and lights. Path tracing can be very expensive to compute, but it's considered the holy grail of real-time graphics.

Comparison of path tracing with a less complete ray-tracing algorithm and rasterization. How Does Direct and Indirect Lighting Affect Graphics? Light map applied to a scene. Image courtesy of Reddit. Direct lighting provides the basic appearance of realism, and indirect lighting makes scenes look richer and more natural.

One way indirect lighting has been used in many video games is through omnipresent ambient light. This type o
LINK: https://blogs.nvidia.com/blog/2022/08/04/direct-indirect-lighting/...
See more stories from nvidia

Most recent headlines

05/01/2027

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be demoed at CES 2026

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

06/09/2026

Dolby and MagentaTV Bring Fans Closer to the FIFA World Cup 2026 in Germany with Dolby Vision and Dolby Atmos

June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...

09/08/2026

reFX introduce Rippler

Combines physical modelling with subtractive synthesis reFX, the company behind the popular Nexus and Vanguard2 soft synths have announced the launch of the...

09/08/2026

Dreamtonics tease upcoming release

Human nuance is not a switch Dreamtonics have built up a solid reputation off the back of their Synthesizer V Studio software, a powerful vocal-synthesis t...

09/08/2026

COW Jobs: Documentary Editor - Remote

COW Jobs: Documentary Editor - Remote Brie Clayton August 9, 2026 0 Comments Documentary Editor July 31, 2026COW Jobs: Lead Generation Representativ...

08/08/2026

IK Multimedia launch Tonex 2.0 beta

Enhanced ToneNET integration & 220 new Premium V2 Tone Models IK Multimedia have just launched a public beta of Tonex 2.0, a release which is said to repres...

08/08/2026

Roland celebrate 808 Day

Honouring the drum machine that redefined modern music Roland have announced their plans for this year's 808 Day, a day that was founded to celebrate th...

08/08/2026

Call for Entries Now Open for the 20th Annual South African Film & Television Awards (SAFTAs20)

The National Film and Video Foundation (NFVF), an agency of the Department of Sp...

08/08/2026

Star Wars Hyperspeed Tutorial: The No-Echo Method in After Effects

Star Wars Hyperspeed Tutorial: The No-Echo Method in After Effects Graham Quince August 8, 2026 0 Comments The Echo Effect to create long streaks is n...

08/08/2026

Chyron Releases AXIS 4.0 With Expanded News Workflows and Richer Map Storytelling

Chyron Releases AXIS 4.0 With Expanded News Workflows and Richer Map Storytellin...

08/08/2026

Nielsen to Acquire DoubleVerify for $2.15 Billion

Share Copy link Facebook X Linkedin Bluesky Email...

08/08/2026

FCC Chair Carr Announces New Legal Advisor

Share Copy link Facebook X Linkedin Bluesky Email...

08/08/2026

Trump Nominates Danielle Thumann Severs to FCC Commission Seat

Share Copy link Facebook X Linkedin Bluesky Email...

08/08/2026

New York Jets, CBS New York Extends Deal with New York Jets

Share Copy link Facebook X Linkedin Bluesky Email...

08/08/2026

Foundry Unlocks Professional-Grade AI for VFX with Griptape Enterprise; Appoints Kyle Roche as Chief AI Officer

Foundry Unlocks Professional-Grade AI for VFX with Griptape Enterprise; Appoints...

08/08/2026

Award Winning New Horror Film Shot Using Blackmagic Camera App

Award Winning New Horror Film Shot Using Blackmagic Camera App Brie Clayton August 7, 2026 0 Comments Fire Alive, shot using the Blackmagic Camera i...

08/08/2026

Firebird Launches CIS Region's Largest AI Factory in Armenia

The global buildout of AI infrastructure reached a new milestone today - Firebird, an emerging AI cloud, launched the CIS region's largest AI factory in Arm...

07/08/2026

Diversified Appoints Pete Emminger as Global Chief Technology Officer

Diversified has appointed industry veteran Pete Emminger as global chief technology officer. Emminger will lead the company's global go-to-market technology...

07/08/2026

Release Rundown: What to Watch in August, From American Doctor to Idiots

O'Shea Jackson Jr., Dave Franco, and Mason Thames appear in Idiots by Macon Blair, an official selection of the 2026 Sundance Film Festival. (Courtesy of ...

07/08/2026

Sonuscore release The Sculpture

An instrument made for the adventurous composer Described as an instrument made for the adventurous composer , Sonuscore's latest sample library has b...

07/08/2026

Synchron Solo Violin 2 & Viola (sordino) join VSL line-up

Latest solo Synchron libraries arrive VSL have just released the final two instalments in their range of muted solo string libraries. Recorded in the large ...

07/08/2026

GC Audio's new Producer Channel

Channel strip offers plug-in control & recall Along with some new additions to their Inherit modular preamp system, GC Audio's announcements for NAMM 20...

07/08/2026

Opening Statement: Public hearing of the Inquiry into Racism, Hate and Violence Directed at Aboriginal and Torres Strait Islander People

Opening Statement: Public hearing of the Inquiry into Racism, Hate and Violence ...

07/08/2026

Nielsen to Acquire DoubleVerify, Creating a Leading, Independent Media Intelligence Platform

DoubleVerify Shareholders to Receive $13.60 Per Share in Cash, Representing a 30...

07/08/2026

Lawo To Highlight Dynamic Media Facility Support At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

MediaKind To Feature Unified Product Portfolio At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

ACT Entertainment Honored with Neutrik Group Americas Par...

The Award Recognizes ACT's Outstanding Sales Performance, Marketing Collaboration and Long-standing Commitment to the NEUTRIK Brand ACT Entertainment, one ...

07/08/2026

Beamr Brings NVIDIA Video Super Resolution to Live Sports...

Beamr Imaging Ltd. (Nasdaq: BMR), a leader in video optimization technology and solutions, today announced it is bringing AI upscaling to live sports, broadcast...

07/08/2026

Berklee City Music Presents Nine Scholarships and Awards at Annual Concert

Berklee City Music Presents Nine Scholarships and Awards at Annual Concert Student recipients from seven states and Canada received scholarships, housing awar...

07/08/2026

Lawo To Highlights Dynamic Media Facility Support At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

Kevin Trueblood to Return as SBE President

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

Riedel To Demo 'Live Production Experience At IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

LTN Enhances Live Event Master Control Capabilities

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

AI-Native Film Studio Launches in Toronto

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

Judge Orders Removal of Nexstar Employees from Tegna Board

Share Copy link Facebook X Linkedin Bluesky Email...

07/08/2026

Riedel Communications at IBC2026 Live Production Experien...

Riedel Communications at IBC2026: Live Production Experience Showcasing Integrated IP Production Workflows At IBC2026, Riedel Communications will bring modern ...

07/08/2026

Shotoku Showcases Expanding Aura PTZ Ecosystem and Award-...

Shotoku Showcases Expanding Aura PTZ Ecosystem and Award-Winning Swoop Robotic Crane at IBC2026 Shotoku Broadcast Systems will officially introduce its Aura fa...

07/08/2026

Cobalt Digital to Bring New and Enhanced Practical Soluti...

Highlights will include new Dante fiber connectivity, expanded IPMX capabilities and award-winning signal processing solutions Cobalt Digital, the leading des...

07/08/2026

Bob Moses Concert at Red Rocks Captured with URSA Cine 12K LF

Bob Moses Concert at Red Rocks Captured with URSA Cine 12K LF Brie Clayton August 6, 2026 0 Comments PYXIS 12K and URSA Cine 12K LF enable cinematic c...

07/08/2026

Use It or Else Is Not an AI Implementation Strategy

Use It or Else Is Not an AI Implementation Strategy Andy Marken August 6, 2026 0 Comments Source - Hitchhikers Guide to the Universe, Touchstone Pi...

07/08/2026

Heated Rivalry will return to Sky and NOW in Spring 2027 exclusively in the UK and Ireland, with new additions to its lead cast

Friday 7 August 2026 Heated Rivalry will return to Sky and NOW in Spring 2027 e...

07/08/2026

Major transformation of UK digital radio platform

Migration of more than 1,000 radio services delivers improved resilience, efficiency and sustainability 07 August 2026, Winchester, UK Arqiva, the UK's l...

07/08/2026

Commission accelerates IRIS deployment with enhanced security and expanded satellites network

On 6 August, the European Commission and the SpaceRISE consortium concluded nego...

07/08/2026

A date worth betraying your plans for The Traitors Ireland returns to screens Sunday, 30 August

The Traitors Ireland Uncloaked is also back with all the behind the scenes drama...

06/08/2026

USA Sports Rolls Into 2026 NASCAR Season With First Pace-Car Analyst on Selected Races

The broadcaster's 14-race schedule begins in Iowa and ends in November with ...

06/08/2026

SVG GameDay, Ep. 25: Chicago Bears Katlin Strange - Serving the Masses in the Windy City

In-venue and creative video staffers at the professional and collegiate level ha...

06/08/2026

Warner Bros Discovery's Anne Graham Details the Organization's Media-Ops and Metadata Consolidation Across Sports and Entertainment

As media organizations consolidate teams, technology platforms, and content libr...

06/08/2026

Dolby Vision 2 Begins Rollout on Selected 2026 Hisense TVs

Firmware updates introduce Dolby's next-generation picture engine, content-aware optimization, and new motion and ambient-light tools...

06/08/2026

TNT Sports Preps Wall-to-Wall Coverage of FIBA Women's Basketball World Cup 2026 from Sept. 4-13

TNT Sports will have wall-to-wall coverage of the upcoming FIBA Women's Bask...