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

30/08/2026

Reason Studios launch Reason Free

Free collection includes 15 instruments Reason Studios have announced that they are making their popular Reason Rack plug-in free, and bundling it with a se...

29/08/2026

SSL to introduce O-Series V2.0

Odyssey & Oracle console software update incoming With a second console now joining their O-Series, SSL have announced the upcoming launch of O-Series V2.0,...

29/08/2026

Scripps Hires NBCU Sales Veteran Jen Carfley

Share Copy link Facebook X Linkedin Bluesky Email...

29/08/2026

Comcast's Universal Ads Taps Tracer to Upgrade Operations

Share Copy link Facebook X Linkedin Bluesky Email...

29/08/2026

PlayBox Technology to Showcase the Future of Media Orches...

PlayBox Technology is heading to IBC2026 with a clear message: the future of broadcast and streaming is not about replacing everything it is about making what...

29/08/2026

Berklee Announces Fall 2026 Signature Series

Berklee Announces Fall 2026 Signature Series This years concerts feature MonoNeon, Brandon Woody, Marcus Gilmore, and Caroline Davis, alongside Berklee Asia R...

28/08/2026

CBS L.A. Runs Two Hot Control Rooms, Dual Broadcasts for Rams-Chargers Preseason Game

KCBS takes the Chargers side, KCAL takes the Rams - with feeds out to 18 partner...

28/08/2026

Buddy Turns Childhood Comfort into Midnight Terror

(L-R) Topher Grace, Cristin Milioti, Delaney Quinn, Casper Kelly, and Keegan-Michael Key pose with the character Buddy at the Buddy Premiere during the 2026 S...

28/08/2026

IK Multimedia announce Sinphonica Maestosa Strings

The Italian orchestra, reimagined IK Multimedia have announced the upcoming launch of Sinphonica, a new family of Italian orchestral instruments designed f...

28/08/2026

Voxis from CEDAR Audio

Voice-isolation plug-in boasts sub-10ms latency Launched in 2025, CEDAR Audio's Icons range was created with the aim of bringing the company's renow...

28/08/2026

Charter Takes Scripps to Court Over Carriage of Las Vegas' KMCC

Share Copy link Facebook X Linkedin Bluesky Email...

28/08/2026

Backlight Expands Creative Operations Platform with AI-p...

Global media technology company Backlight will showcase its latest innovations across Iconik and Wildmoka live video creation and distribution at IBC2026 (booth...

28/08/2026

Emergent Brings Its AI-Enhanced Content Production Platfo...

Emergent, a developer of browser-based, AI-enhanced content production tools, will present its complete AI-enhanced content production platform at IBC2026, exhi...

28/08/2026

Joseph Bell Announces VFX & Animation World Atlas 2026

Joseph Bell Announces VFX & Animation World Atlas 2026 Joseph Bell August 28, 2026 1 Comment Joseph Bell's Visual Effects & Animation World Atlas ...

28/08/2026

Paris-Troyes en Champagne Goes Live on France.tv with AVEO

Paris-Troyes en Champagne Goes Live on France.tv with AVEO Brie Clayton August 28, 2026 0 Comments Regional audiovisual company builds broadcastgrade ...

28/08/2026

DHD to Introduce its Third-Generation Audio Mixing Console at IBC 2026

DHD to Introduce its Third-Generation Audio Mixing Console at IBC 2026 Brie Clayton August 28, 2026 0 Comments DHD.audio has chosen IBC 2026 as the la...

28/08/2026

Grass Valley AMPP Provides an All-Encompassing Approach t...

Encompass Digital Media and Grass Valley are expanding their collaboration with the launch of Altitude Playout Plus, a software-defined channel origination plat...

28/08/2026

Yospace releases new Ad Presentation solution

Yospace, the trusted leader in Dynamic Ad Insertion (DAI), has announced the release of its Ad Presentation solution, which enables broadcasters to apply non-li...

28/08/2026

TSL Showcases Reduced Complexity for Control and Monitori...

TSL Showcases Reduced Complexity for Control & Monitoring Across IP Workflows at IBC2026 New TSL Hummingbird capabilities including Dante control routing, toge...

28/08/2026

Lutz Rathmann to Become CEO of Riedel Communications

Share Copy link Facebook X Linkedin Bluesky Email...

28/08/2026

Spectrum Offers Lower-Income Internet Customers Free Amazon Prime

Share Copy link Facebook X Linkedin Bluesky Email...

28/08/2026

FCC Exempts Public Access Channels from Closed Captioning

Share Copy link Facebook X Linkedin Bluesky Email...

28/08/2026

Elon Musk's X Launches NFL Gametime on X

Share Copy link Facebook X Linkedin Bluesky Email...

28/08/2026

GlobalM and Lamhas Partner to Expand Managed IP Broadcast...

GlobalM and Lamhas Satellite Services today announced a new agreement that will see GlobalMs GMX technology deployed as part of Lamhas expanding managed IP broa...

28/08/2026

Boland Communications Introduces SMPTE ST 2110 Option for...

Integrated 25GbE Connectivity Delivers UHD Video Directly to Up to Two Monitors, Eliminates External Gateways, and Supports SMPTE ST 2022-7 Network-Path Protect...

28/08/2026

JT-DMF Invites IBC2026 Attendees to Help Shape the Future...

Interactive Ask Me Anything sessions will connect broadcasters and technology providers with the experts developing a practical, interoperable roadmap for sof...

28/08/2026

TAG Video Systems Cuts Live Production Latency Below Two...

At IBC2026, TAG will show sub-2-frame latency and 800 Gbps of aggregate scale for uncompressed ST 2110 monitoring in software, live MXL interoperability with pa...

28/08/2026

SportsBox BHVs Ultra-Compact 4K Remote Switcher Moves fro...

SportsBox, BHV's Ultra-Compact 4K Remote Switcher, Moves from Development to Production at IBC 2026 SportsBox brings flexibility without compromise to high...

28/08/2026

Riedel Evolves Leadership and Global Go-to-Market Organiz...

Lutz Rathmann named CEO of Riedel Communications Anthony Zuyderhoff to lead unified customer-facing organization as CCO Riedel Communications is strengthenin...

28/08/2026

Scripps Research establishes endowed fund honoring institute president and CEO Pete Schultz

LA JOLLA, CA-Scripps Research has established the Pete Schultz Fund for Innovati...

28/08/2026

Chemists develop simpler method to make molecular building block for drug development

LA JOLLA, CA-Chemical structures called cyclopropanols are among the most useful...

28/08/2026

Sky Secures Approval for Major Livingston Campus Investment, Reinforcing Long-Term Commitment to Scotland

Friday 28 August 2026 Sky Secures Approval for Major Livingston Campus Investme...

27/08/2026

ESPN Adds College Football Saturdays to Disney+ This Fall

ESPN and Disney are launching College Football Saturdays, adding two college football games per week to Disney for U.S. subscribers as part of their existing ...

27/08/2026

IBC 2026: Zixi to Showcase Live Video Platform and Broadcaster v19

Zixi will exhibit at IBC2026 (Hall 5, Stand 5.A76, RAI Amsterdam, September 11-14), demonstrating the Zixi Platform and the latest release of Zixi Broadcaster, ...

27/08/2026

NDI Surpasses 1.2 Million Hardware Nodes as IBC2026 Showcase Expands

NDI has announced that its ecosystem has surpassed 1.2 million NDI-enabled hardware nodes worldwide, spanning products from more than 200 hardware brands across...

27/08/2026

Clear-Com FreeSpeak Cell Trialed During Rio Carnival Before Commercial Launch

Clear-Com conducted a pre-launch field trial of FreeSpeak Cell during Carnival 2026 in Rio de Janeiro, in partnership with Brazilian systems integrator Savana C...

27/08/2026

IBC 2026: BVH SportsBox Remote Mixer Becomes Reality

BHV returns to IBC 2026 with an important milestone for its own SportsBox: the broadcast industry's smallest remote vision mixer and format processor has mo...

27/08/2026

TOGETHXR and Snapchat Announce Second Snap the Gap Athlete Cohort

TOGETHXR and Snapchat have announced the second cohort of their Snap the Gap content creator program, welcoming nine athletes as Snap Stars. The program provide...

27/08/2026

CNBC UK Selects MediaKind Beam for Live News Infrastructure

MediaKind has announced that CNBC UK has selected Beam to modernize its contribution and distribution infrastructure for live broadcast operations. The deployme...

27/08/2026

Monitor Engineer Chris Dwight Deploys Sennheiser Spectera on Puscifer and A Perfect Circle Tours

Monitor engineer Chris Dwight has deployed Sennheiser's Spectera wideband bi...

27/08/2026

IBC 2026: Telestream Expands UP Platform

Telestream has announced an expansion of its UP cloud-native platform, adding capabilities for orchestrating Telestream services, third-party technologies, and ...

27/08/2026

Swerve TV Signs Multi-Year Partnership with GLORY Kickboxing

Swerve TV has signed a multi-year partnership with GLORY Kickboxing, bringing live GLORY events and library programming to Swerve Combat, Swerve TV's free a...

27/08/2026

AFP and Dalet Integrate AFP Content Into Dalet Flex Newsroom Workflow

Dalet has announced a new integrated content experience with Agence France-Presse (AFP) in Dalet Flex, designed to bring AFP's editorial metadata into the p...

27/08/2026

IBC 2026: Grass Valley to Demonstrate Integrated Live Production Environment

Grass Valley will demonstrate an integrated live production environment at IBC2026 (Booth 9.A01, RAI Amsterdam, September 11-14), combining K-Frame, Maverik X, ...

27/08/2026

NWSL and Roku Expand Partnership with Sunday Night Streaming Package

The National Women's Soccer League and Roku have announced an expanded partnership, with the Roku Sports Channel becoming the exclusive streaming home of ei...

27/08/2026

Fubo Adds ACC Network Extra and SEC Network+ to Streaming Service

FuboTV has announced the launch of ACC Network Extra (ACCNX) and SEC Network (SECN ) on the Fubo streaming service at no additional cost to subscribers with En...

27/08/2026

Moment Branding: Using Sound to Create More Powerful Fan Experiences

Sports marketers have entered the experiential age. Today, sports teams, leagues, and venues are increasingly using immersive interactions and real world events...