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

01/06/2026

Dolby Sets the New Standard for Premium Entertainment at CES 2026

January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026 Throughout the week, Dolby brings to life the latest innovatio...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

10/01/2026

ESPN Reports Near-Record Viewing for Start of NBA Season

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

Rock-It Sports' Deron Brown & Laura Rowlands on Launching a New Brand, Supplying Logistical Needs for Events in 2026

Rock-It Sports' Deron Brown & Laura Rowlands on Launching a New Brand, Suppl...

09/01/2026

Warner Bros. Discovery's Chris Brown on the Broadcaster's First French Open, Advancing Remote Workflows at Techwood Facility

Warner Bros. Discovery's Chris Brown on the Broadcaster's First French O...

09/01/2026

NFL Playoffs 2026: CBS Sports Travels to Jacksonville With Packed Arsenal of Production Capabilities

NFL Playoffs 2026: CBS Sports Travels to Jacksonville With Packed Arsenal of Pro...

09/01/2026

NFL Playoffs 2026: NBC Sports Is Set To Roll Out New Scorebar, Insert Graphics This Weekend

NFL Playoffs 2026: NBC Sports Is Set To Roll Out New Scorebar, Insert Graphics T...

09/01/2026

NFL Playoffs 2026: Prime Video Production Team Caps Historic Season With Iconic Bears-Packers Primetime Matchup in Chicago

NFL Playoffs 2026: Prime Video Production Team Caps Historic Season With Iconic ...

09/01/2026

NFL Playoffs 2026: FOX Sports Kicks Off Postseason Slate With Two-Game Wild Card Coverage

NFL Playoffs 2026: FOX Sports Kicks Off Postseason Slate With Two-Game Wild Card...

09/01/2026

NFL Playoffs 2026: ESPN's Run Brings Monday Night Football' Flagship Operation Into January

NFL Playoffs 2026: ESPN's Run Brings Monday Night Football' Flagship Op...

09/01/2026

Carr: FCC Looking for Ways to Empower' Local Broadcasters

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

Panasonic to Introduce Projection, LED and Workflow Offerings at ISE 2026

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

SMPTE Announces 2026 Leadership

SMPTE , the home of media professionals, technologists, and engineers, today introduced the board officers and regional governors who will serve terms beginning...

09/01/2026

Globecast Appoints Chris Pulis as Group Chief Technology...

Globecast, the leading provider of broadcast, media and entertainment managed services, today announced the appointment of Chris Pulis as Group Chief Technology...

09/01/2026

Hollywood Professional Association Announces Updates to B...

The Hollywood Professional Association (HPA) today announced several updates to its board of directors. As part of HPA s annual governance cycle, new leadership...

09/01/2026

SDVI APPOINTS SIMON ELDRIDGE AS CHIEF OPERATING OFFICER

SDVI, the leading platform provider for cloud-native media supply chains, today announced that Simon Eldridge has been appointed chief operating officer. In thi...

09/01/2026

Cobalt Digital Returns to ISE with Comprehensive Lineup o...

Cobalt Digital, the leading designer and manufacturer of award-winning ST 2110 and SDI signal processing products, and a founding partner in the openGear initi...

09/01/2026

iWedia Strengthens Leadership in ATSC 3-0 with Market-Pro...

iWedia, a global leader in connected TV software solutions, announces that its market-proven ATSC 3.0 software stack is powering the broadcast functionality of ...

09/01/2026

Amino and Xibo Partner to Deliver Next Generation 4K Digi...

Amino, a global leader in enterprise video and digital signage technology, today announced a strategic partnership with Xibo, a leading global digital signage s...

09/01/2026

FIFA Strikes Content Deal with TikTok for 2026 World Cup

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

HPA Elects New Officers, Board Members for 2026

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

NFL's 2025-26 Regular Season Is Second-Most-Watched Ever

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

FCC Sets Tentative Agenda for Jan. 29 Open Meeting

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

Carr: FCC Looking for Ways to 'Empower' Local Broadcasters

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

09/01/2026

RT delivers another record year in 2025, bringing Ireland together with national moments

RT Player has 157 million streams, up 10% year-on-year An increase on 2024, RT...

09/01/2026

2FM announces line-up of Rising Artists for 2026

RT 2FM has today announced the highly anticipated list of 2FM Rising Artists for 2026, kicking off 2FM Rising week for the eighth year on The Tracy Clifford Sh...

09/01/2026

RT to Host the 2026 RTS Ireland Awards

RT to Host the 2026 RTS Ireland Awards Thursday, 16 April 2026 | Dublin Royal Convention Centre The RTS Ireland Television Awards 2026 | Gradaim RTS 2026 | R...

09/01/2026

NVIDIA Unveils Multi-Agent Intelligent Warehouse and Catalog Enrichment AI Blueprints to Power the Retail Pipeline

Every that was easy shopping moment is made possible by teams working to hit s...

08/01/2026

How disinformation is shaping Sudan's conflict: a new report

An evidence-based analysis on disinformation and information manipulation in Sudan's ongoing conflict is published today. (January 8th 2026). Thomson Found...

08/01/2026

At CFP Semifinals, ESPN Again Flexes Its Operational Muscle With 20+ MegaCast Viewing Options

At CFP Semifinals, ESPN Again Flexes Its Operational Muscle With 20+ MegaCast Vi...

08/01/2026

SVG Students To Watch: Sophie Fowler, University of Oregon

SVG Students To Watch: Sophie Fowler, University of OregonThe Portland product has honed her skills as a producer, director, and TD at Quack VideoBy Brandon Cos...

08/01/2026

Follow the Money, Episode 3: Inside the Sports-Media Biz With Sam McCleery and Ken Aagaard

Follow the Money, Episode 3: Inside the Sports-Media Biz With Sam McCleery and K...

08/01/2026

SVG New Sponsor Spotlight: Qualstar's Jeff Sengpiehl on the Enduring Power and Value of LTO Tape for Video Archiving

SVG New Sponsor Spotlight: Qualstar's Jeff Sengpiehl on the Enduring Power a...

08/01/2026

Legendary February: Production Leaders at NBC Sports Pull Back the Curtain on Olympics, Super Bowl, NBA All-Star Plans

Legendary February: Production Leaders at NBC Sports Pull Back the Curtain on Ol...

08/01/2026

One Year In: How Creators Are Growing Their Shows and Connecting With Audiences Through the Spotify Partner Program

In 2025 we launched the Spotify Partner Program to give creators more ways to tu...

08/01/2026

Spotify Toasts to the Future of Podcasting With Creators at Our New Sycamore Studios

On Wednesday in Los Angeles, Spotify welcomed creators and press to a brunch cel...

08/01/2026

Hollywood Professional Association (HPA) Announces Updates to Board of Directors

The Hollywood Professional Association (HPA) today announced several updates to its Board of Directors. As part of HPA's annual governance cycle, new leader...

08/01/2026

Chyron Releases Virtual Placement 8.0

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

08/01/2026

SMPTE Names Board Officers, Governors for 2026

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

08/01/2026

FCC to Vote on Proposals Expanding Unlicensed Use of 6 GHz Band

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

08/01/2026

RTVE selects Alfalite Neopix for its first broadcast depl...

Spain's national public broadcaster, RTVE, has upgraded one of its main television production facilities in Madrid with the installation of two Alfalite NEO...

08/01/2026

Richard E. Wiley to Step Down as Media Institute's Chairman

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

08/01/2026

Cineverse Acquires Giant Worldwide

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

08/01/2026

Maxon Introduces Cinebench 2026

Maxon's new release of Cinebench features performance enhancements and adds support for the latest Nvidia and AMD GPUs as well as Apple Silicon. Maxon is t...

08/01/2026

Zixi Accelerates Global Growth with Appointment of Heathe...

Zixi, the industry leader in IP-based video transport and orchestration, today announced the appointment of Heather Mellish as Vice President, Global Sales. In...

08/01/2026

Pebble future-proofs playout at Canal Sur

Pebble, the leading automation, content management and integrated channel specialist, has provided a complete update of its installation at Canal Sur in Spain. ...

08/01/2026

Panasonics success in US market with Flagship Z95B OLED T...

iWedia, a global leader in software solutions for connected TV devices, proudly announces the success of its collaboration with Panasonic on the Z95B OLED TV, o...

08/01/2026

Secuoya Chile Invests in Ikegami UHK-X600 and UHL-X40 Cam...

Secuoya Chile, a leading provider of television content creation and supporting services, has invested in Ikegami UHK-X600 and UHL-X40 broadcast cameras as the ...