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 ...

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

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...

01/10/2026

FCC Unleashes Spectrum Abundance for New Uses

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Poll: Alabamans Favor PBS Support, but Many Question Its Political Leanings

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

California Governor Signs Community NEWS Act

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Green Hippo Estuary Series MC1 and MC2 Media Controllers...

Eleven minutes between headliners. The sponsor loop needs to be on screen now, and the only operator on hand is the one running lights. With the Green Hippo Est...

01/10/2026

DigiBox announces partnership with FOR-A for UK and Europ...

DigiBox has announced a new partnership with FOR-A to represent the innovative MixBoard product range in the UK market, further expanding its portfolio of broa...

01/10/2026

Screen Australia-funded documentaries bring Australian experiences and new perspectives to the screen

Screen Australia-funded documentaries bring Australian experiences and new persp...

01/10/2026

Mavis Camera 8.2 adds iPhone 18 Pro support with variable aperture control

Mavis Camera 8.2 adds iPhone 18 Pro support with variable aperture control Brie Clayton September 30, 2026 0 Comments Latest release also introduces P...

01/10/2026

Ghosts of the Gold Rush Shot with PYXIS 6K

Ghosts of the Gold Rush Shot with PYXIS 6K Brie Clayton September 30, 2026 0 Comments Blackmagic Design cameras expertly capture documentary while del...

01/10/2026

RE:Vision Effects - RSMB V7 is here!

RE:Vision Effects - RSMB V7 is here! Lori Freitag September 30, 2026 0 Comments ReelSmart Motion Blur 7 is here, the RSMB V7 cycle is open. ReelSmart ...

01/10/2026

VideoGen raises $3.3M seed as its AI video platform passes 5 million users

VideoGen raises $3.3M seed as its AI video platform passes 5 million users Brie Clayton September 30, 2026 0 Comments VideoGen co-founders Anton Koeni...

01/10/2026

Fullsteam Brewery Opens Its Durham Forever Home at American Tobacco Campus

New taproom, restaurant, lounge and theater in the historic Power Plant add to ATC's growing social hub Fullsteam Brewery and CBC Real Estate celebrate th...

01/10/2026

Berklee and APM Music Launch Global Catalog Bringing Student-Created Music to Film, TV, and Beyond

Berklee and APM Music Launch Global Catalog Bringing Student-Created Music to Fi...

30/09/2026

SVG Students To Watch: Jacquelynn Dupree, Clark Atlanta University

Drawn to the many moving pieces of a live broadcast, this Los Angeles native is building a path in production management and technical operations...

30/09/2026

NHL on TNT Opens New Season in 1080p HDR With Stanley Cup Final on the Horizon

TNT Sports goes big for its season opener in Philadelphia, and REMI workflows at Techwood will again anchor much of regular-season production...

30/09/2026

Katlyn Alexander Named CEO of Qvest North America

Qvest has appointed Katlyn Alexander as CEO of Qvest in North America, effective August 16, 2026. Alexander, who previously served as COO of Qvest US, succeeds ...

30/09/2026

AAPB Wraps 2026 Season with Record Viewership and Expanded Broadcast Footprint

The American Association of Professional Baseball (AAPB) has wrapped its 2026 season, with leaguewide attendance surpassing 1.4 million for the fifth consecutiv...

30/09/2026

Veritone Partners with ATP Media to License Tennis Archive in North America

Veritone has announced a multi-year content licensing agreement with ATP Media, the broadcast production and distribution arm of the ATP Tour, making ATP's ...

30/09/2026

Netflix To Stream WWE Exclusively in Japan Beginning October 1

Netflix has announced it will become the exclusive home for WWE programming in Japan beginning October 1, 2026. The lineup includes Raw, SmackDown, NXT, Premium...

30/09/2026

SES and Sky Extend Satellite Capacity Agreement for UK and Ireland

SES and Sky have announced a new multi-year agreement for direct-to-home satellite services across the United Kingdom and Republic of Ireland, running into the ...

30/09/2026

Big Blue Marble Adds Live Multiview Channels to Cloud Video Kit via AWS Elemental Dynamic Multiview

Big Blue Marble has announced the addition of live multiview channels to its Clo...

30/09/2026

NHRA Announces Multi-Year Media Rights Deals With FOX Sports, The CW, and FloSports

The NHRA has announced multi-year media rights agreements with FOX Sports, The C...

30/09/2026

FOX 5 Atlanta to Broadcast Nashville Predators Games in 2026-27 Season

FOX 5 Atlanta (WAGA-TV) will carry Nashville Predators games during the 2026-27 season as part of Scripps Sports' regional broadcast network for the team. G...

30/09/2026

SVG Sit-Down: Brahma AIs Patrio Cummins on the Possibilities of AI (and the Misconceptions)

AI was a big buzz on the IBC show floor but there weren't a ton of companies...

30/09/2026

PGA TOUR Names Ryan Holcomb Senior Vice President and Head of Original Content

The PGA TOUR has announced the appointment ofRyan Holcomb as Senior Vice President and Head of Original Content, according to The Hollywood Reporter. Holcomb wi...

30/09/2026

ESPN Drops the Puck on Enhanced Audio for the New NHL Season

The sound will be more immersive, with improved design and more mikes on the ice and the players The National Hockey League's season opener on Tuesday nigh...

30/09/2026

TNT Sports' Chris Brown, Lee Mabry on Beginning 2026-27 NHL Season With an Onsite Effort in Philly

TNT Sports is dropping the puck on the 2026-27 NHL season in a big way in Philad...

30/09/2026

International Swimming League Names Gravity Media as Production Partner

The International Swimming League ( ISL ) today announced the appointment of Gravity Media, global leader in live production and content and media services and ...

30/09/2026

Give Me the Backstory: Get to Know Amir Bar-Lev, the Director of The Last First: Winter K2

By Ramona Flume One of the most exciting things about the Sundance Film Festiva...

30/09/2026

Sync Audio release MegaMorph

Add an envelope generator to any plug-in Sync Audio's latest creation is a handy utility plug-in that can be used to combine and modulate other effects ...

30/09/2026

Strymon launch the La Brea

All-analogue tape-style drive joins Series A Strymon's reputation was built on their digital knowhow, so many were surprised (and intrigued) when they a...

30/09/2026

Sonuscore The Pulse: Synth Wave & Epic Atmospheres

Two new expansion packs released Sonuscore have just introduced two new expansion packs for The Pulse, its production engine instrument for modern cinematic...

30/09/2026

Clear-Com's Arcadia Central Station Brings Professional Production Communications to...

eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...

30/09/2026

AWARN Alliance Urges FCC to Let Broadcasters Tap Full 3.0 Capabilities

Share Copy link Facebook X Linkedin Bluesky Email...

30/09/2026

Senator Asks If All-GOP FCC Would Violate Federal Law

Share Copy link Facebook X Linkedin Bluesky Email...

30/09/2026

Marshall PTZ Cameras Bring Legendary Progressive Rock Exp...

The An Evening with Emerson, Lake and Palmer tour brings one of rock's most iconic bands back to the stage. These performances seamlessly blend live foota...

30/09/2026

Schibsted Media Chooses DHD RX2 and TX2 Mixers for Remote...

Schibsted Media, one of Norways largest and most influential digital media publishers and content producers, has invested in mixers and digital signal processor...

30/09/2026

Big Blue Marble adds live multiview channels to its video...

Big Blue Marble announces the addition of live multiview channels to Cloud Video Kit, its broadcast-grade video processing platform. The feature is powered by A...

30/09/2026

Telekom Slovenije brings local advertising to internation...

Leading video software provider Synamedia today announced that Telekom Slovenije, Slovenia's largest provider of telecommunications and TV services, is open...

30/09/2026

PODCAST EXPO 2026 Recorded Using Blackmagic Design Workflow

PODCAST EXPO 2026 Recorded Using Blackmagic Design Workflow Brie Clayton September 29, 2026 0 Comments Conference featuring 24 sessions over two days ...

30/09/2026

IBC2026 Show Report

IBC2026 Show Report David Kirk September 29, 2026 0 Comments The International Broadcasting Convention has long been Europe's equivalent of the US...

30/09/2026

SGO Unveils Workflows Slate To Enable Automated Burn-ins, Slates

Share Copy link Facebook X Linkedin Bluesky Email...

30/09/2026

Public Advocacy Group Urges Broadcasters to Stop Airing Trump Taxpayer Funded Ad

Share Copy link Facebook X Linkedin Bluesky Email...

30/09/2026

Qvest Promotes Katlyn Alexander to CEO, North America

Share Copy link Facebook X Linkedin Bluesky Email...

30/09/2026

Mavis Camera 8-2 adds iPhone 18 Pro Support with Variable...

Mavis has launched Mavis Camera 8.2, the latest release of its professional camera app for the iPhone and iPad. This update brings support for iPhone 18 Pro and...

30/09/2026

NVIDIA Opens Applications for 2027-2028 Graduate Fellowships With Awards Up to $60,000

Bringing together the world's brightest minds and the latest accelerated com...

30/09/2026

Tribeca Festival Announces 2027 Dates And Calls For Submissions

September 30th, 2026 TRIBECA FESTIVAL ANNOUNCES 2027 DATES AND CALLS FOR SUBMISSIONS Following a Record Box Office Year, the 26th Edition, Presented by OKX,...