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

12/01/2026

Sports and Music Unite: A Look Back at the Operationally Ambitious FIFA Club World Cup Final Halftime Show

Sports and Music Unite: A Look Back at the Operationally Ambitious FIFA Club Wor...

12/01/2026

Nielsen Panel Discussion Highlights World Cup Impact for FOX, Telemundo, MetLife, and MLS

Nielsen Panel Discussion Highlights World Cup Impact for FOX, Telemundo, MetLife...

12/01/2026

FIFA President Infantino Highlights How AI Will Impact 2026 FIFA World Cup and Beyond

FIFA President Infantino Highlights How AI Will Impact 2026 FIFA World Cup and B...

12/01/2026

Baltimore Ravens' Jack Dana on Telling a Better Story With Media Management in the Cloud

Baltimore Ravens' Jack Dana on Telling a Better Story With Media Management ...

12/01/2026

FOX Sports' Brad Cheney on Spectrum Debate's Impact on the Sports-Production Industry

FOX Sports' Brad Cheney on Spectrum Debate's Impact on the Sports-Produc...

12/01/2026

New Year, New Jobs, Renewed Commitment

Spotify's new co-CEOs, Alex Norstr m and Gustav S derstr m, start off the new year with a message of renewed leadership, creative responsibility, and what&#...

12/01/2026

Spotify's Artists to Watch 2026 Are Ready for the Spotlight

At Spotify, we listen to a lot of music. And every year, our global editors and artist partnerships teams come together to spotlight the emerging voices we beli...

12/01/2026

Spotify's Music Team Reveals Its Songwriters to Watch 2026

Spotify's global editors and Songwriter & Publisher Partnerships team spend their days immersed in new music, tracking the writers behind the songs breaking...

12/01/2026

Nominations open for the fifth Australia for UNHCR - SBS Les Murray Award for Refugee Recognition

Nominations open for the fifth Australia for UNHCR - SBS Les Murray Award for Re...

12/01/2026

Accelerating Mission Readiness in the Indo-Pacific: L3Harris' Alan Clements on Australia's Naval Transformation

Australia and New Zealand VP Alan Clements shares L3Harris' leadership insig...

12/01/2026

Paramount Sues Warner Bros. Discovery, Launches Proxy Fight

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

12/01/2026

Berklee International Folk Festival Celebrates 40 Years

Berklee International Folk Festival Celebrates 40 Years Featuring Grammy-winning alumna Arooj Aftab, the milestone concert and weeklong festival marks four de...

12/01/2026

Global Investment in Media Content to Hit $255B in 2026

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

12/01/2026

Andreas Eriksson to Helm Net Insight as CEO

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

12/01/2026

X-Rite and Rhopoint Launch Rhopoint PANTORA Aesthetix to Streamline Creation of Digital Material Twins

X-Rite and Rhopoint Launch Rhopoint PANTORA Aesthetix to Streamline Creation of...

12/01/2026

VEON's Kyivstar Launches 5G Pilot in Lviv

12 Jan 2026 VEON's Kyivstar Launches 5G Pilot in Lviv Lviv, January 12, 2026 - VEON, a global digital operator (Nasdaq: VEON), today announces that Kyivsta...

12/01/2026

The ultimate betrayal: Harry and Jamie Redknapp, Paul Merson and Karel Prince team up to find the culprit ahead of Transfer Deadline Day

Monday 12 January 2026 The ultimate betrayal: Harry and Jamie Redknapp, Paul Me...

12/01/2026

Rohde & Schwarz opens larger office in Japan to increase its support for the Japanese automotive market

Rohde & Schwarz opens larger office in Japan to increase its support for the Jap...

12/01/2026

WWE By the Numbers: Celebrating One Year on Netflix

Back to All News WWE By the Numbers: Celebrating One Year on Netflix From left to right: Rey Mysterio, Intercontinental Champion John Cena and Sheamus celebr...

12/01/2026

Welcome to the AVECO team: introducing new members of management

Welcome to the AVECO team: introducing new members of management At AVECO, we are continuing to implement our #newAVECO strategy, which aims to build an even s...

12/01/2026

Comedian and actor Michael Fry becomes the first celebrity to exit Dancing with the Stars

For the first time in the nine-year history of Dancing with the Stars, the first...

10/01/2026

Give Me the Backstory: Get to Know Cherien Dabis, the Filmmaker Behind All That's Left of You ( )

By Bailey Pennick One of the most exciting things about the Sundance Film Festi...

10/01/2026

Golden Week Nominees Night Celebrates a Podcasting Milestone

This year, podcasts are making their Golden Globes debut with a new category honoring the medium's leading shows and creators. To mark the occasion, Spotify...

10/01/2026

ESPN Reports Near-Record Viewing for Start of NBA Season

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

10/01/2026

Connection and Youth Defined: 'The Ramparts of Ice' Brings a Heartwarming Story of Friendship to Netflix this April

Back to All News Connection and Youth Defined: The Ramparts of Ice Brings a Hea...

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