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

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

04/08/2026

Dalet Announces Commercial Availability of Dalia, Bringing Media-Aware Agentic AI to Enterprise Productions

Dalet, a leading technology and service provider for media-rich organizations, t...

06/07/2026

Inside OneSoccer's FIFA World Cup Ops: Canada's Soccer Network Goes Behind the Scenes for CanMNT's Historic Moment

Long-developed relationships and informal access, three production models, and c...

06/07/2026

Lumine Group Acquires Imagine Communications, Continues To Build Portfolio of Media Businesses

The deal follows Lumine's recent acquisition of Synamedia's video-networ...

06/07/2026

SVG All-Stars: Stuart Mitchell, Senior Coordinating Producer, Spectrum SportsNet LA

This former SportsCenter producer is shaping local-team studio coverage to surro...

06/07/2026

Case Study: How IMS Productions and FOX Sports Scaled Coverage of the 109th Indianapolis 500

IMS Productions and FOX Sports deployed more than 100 cameras, 32 onboard feeds,...

06/07/2026

Lumine Group Completes Acquisition of Synamedias Video Network Business

Lumine Group Inc. has announced the completion of its acquisition of the Video Network Business from Synamedia. The business will operate as a standalone compan...

06/07/2026

NASCAR and Motorsport Network Announce Content and Commercial Partnership

NASCAR has announced a content and commercial partnership with Motorsport Network, a motorsports and automotive media platform, to distribute NASCAR original co...

06/07/2026

Versant To Acquire Full Swing for Approximately $530 Million

Versant Media Group has announced a definitive agreement to acquire Full Swing, a sports technology company, from Bruin Capital and a group of minority investor...

06/07/2026

DAZN Secures Global Rights to 3ICE Hockey

DAZN has announced global broadcast rights to 3ICE, a professional hockey format featuring three skaters and a goalkeeper per side, with no power plays or offsi...

06/07/2026

Synth Anthology 5 From UVI

Bundle gains 100 new synths & more Synth Anthology 5 the largest and most feature-packed edition of UVI's hardware synth emulation bundle, bringing toge...

06/07/2026

MOTU 16A, 848 & 10pre gain Milan certification

Available now via free firmware update MOTU have just announced that three of their popular audio interfaces now boast official Milan Certification. The 16A...

06/07/2026

Rohde & Schwarz completes Hunter Preliminary Design Review for the Integrated Communications System

Rohde & Schwarz completes Hunter Preliminary Design Review for the Integrated Co...

06/07/2026

The R&S IMAGER from Rohde & Schwarz uses millimeter wave imaging to inspect the quality of packaged goods in real time

The R&S IMAGER from Rohde & Schwarz uses millimeter wave imaging to inspect the ...

06/07/2026

INVITATION FOR SOUTH AFRICAN FILMMAKERS TO SUBMIT FILMS FOR THE 99TH ANNUAL ACADEMY AWARDS (OSCARS) INTERNATIONAL FEATURE FILM CATEGORY

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

06/07/2026

Digital Domain Appoints Industry Veteran Patrick Davenport as Executive Vice President, Operations

Digital Domain Appoints Industry Veteran Patrick Davenport as Executive Vice Pre...

06/07/2026

Gravity Media USA appoints Brittney Boston as Head of Business Development

Gravity Media USA appoints Brittney Boston as Head of Business Development Brie Clayton July 6, 2026 0 Comments The strategic new appointment supports...

06/07/2026

Remote Editing Without Cloud Storage in Resolve

Remote Editing Without Cloud Storage in Resolve Michael Cioni July 6, 2026 0 Comments This is a step-by-step guide that demonstrates how to setup your...

06/07/2026

Automatic Caption Translation in Adobe Premiere Pro

Automatic Caption Translation in Adobe Premiere Pro Colin Smith July 6, 2026 0 Comments Here I showcase the innovative automatic caption translation f...

06/07/2026

Flavor's FirstEver Managing Director Neal Cohen Retires; Longstanding Executive Producer Kate Smith Rises to Lead the Studio

Flavor's First Ever Managing Director Neal Cohen Retires; Longstanding Execu...

06/07/2026

How Adam Rosenwach Pivoted from Music to Medtech Without Missing a Beat

How Adam Rosenwach Pivoted from Music to Medtech Without Missing a Beat What do the rehearsal room and the boardroom have in common? More than you might think...

06/07/2026

Zhongyi Optics unveils the Dreamy Zone T1 FF Cine Lens Series on Indiegogo with the first drop

Zhongyi Optics unveils the Dreamy Zone T1 FF Cine Lens Series on Indiegogo with ...

06/07/2026

Techtel debuts insyght: making ST 2110 media discovery easy

Techtel debuts insyght: making ST 2110 media discovery easy intellisphereinsyght2026 6 July Written By Suzanne Costello Sydney, Australia - 06 July 2026 T...

06/07/2026

Sky agrees to acquire ITV Media & Entertainment, creating a commercial streaming champion for the UK

Monday 6 July 2026 Sky agrees to acquire ITV Media & Entertainment, creating a ...

06/07/2026

Pico Lopes joins RT's FIFA World Cup 2026 Live panel

Fresh from his World Cup heroics with Cabo Verde, Roberto Pico' Lopes will join the RT panel for Argentina v Egypt tomorrow and for the England v Norway q...

06/07/2026

How Nations Are Deploying AI for Strategic Priorities

Nations have long invested in domestic infrastructure to advance their economies, protect and use their data, and take advantage of technology opportunities in ...

06/07/2026

How Open Models Are Driving AI Research

Every year, the International Conference on Machine Learning (ICML) reveals where thousands of AI researchers have decided to put their work. This year's ...

06/07/2026

New RT documentary The Girl in the Water follows one family's search for answers following the death of their 23-year-old daughter

A death can be unsuspicious, but it has to be explained What happened to Ke...

05/07/2026

Fox Sports AR/XR Studio Graphics Team Shows Power of Next-Generation Operations

We've gone to another level of integrating the graphics into the set architecture' - Zac Fields, SVP, Graphic Technology and Integration, FOX Sports...

05/07/2026

Free Behringer Synth Editor

Browser-based and desktop apps available Digital Sunset Studios have been busy working on an interesting project: a free software tool that provides compute...

04/07/2026

Inside OneSoccers FIFA World Cup Ops: Canadas Soccer Network Goes Behind the Scenes for CanMNTs Historic Moment

When Canada qualified for the FIFA World Cup 2026, OneSoccer knew this wasn'...

04/07/2026

Rhodes to launch the MK8/80AE

Celebrates company's 80th anniversary Rhodes have recently revealed that they will be producing a limited run of electric pianos in celebration of their...

04/07/2026

Blackmagic Design Cameras Empower Youth Broadcasting Program

Blackmagic Design Cameras Empower Youth Broadcasting Program Brie Clayton July 3, 2026 0 Comments Blackmagic Pocket Cinema Camera 6K Pro and Blackmagi...

04/07/2026

iZotope Joins Boris FX

iZotope Joins Boris FX Boris Yamnitsky July 3, 2026 0 Comments iZotope, the team behind RX and Ozone, is joining Boris FX. A letter from founder Boris...

04/07/2026

Detective Conan: Fallen Angel of the Highway Opens in Dolby Cinemas Across Japan, Presented in Dolby Atmos and Dolby ...

April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...

03/07/2026

VSL reveal Synchron Brass (muted)

New bundle & three Single Packs Continuing to expand their already sizeable orchestral collection, VSL's latest release introduces three new Single Pack...

03/07/2026

London Symphony Orchestra upgrade LSO St Luke's

Venue installs new ATC-equipped control room LSO St Luke's, a unique music venue that also serves as the home of the London Symphony Orchestra, have rec...

03/07/2026

Caden Pearson appointed new Commissioning Editor for NITV

Caden Pearson appointed new Commissioning Editor for NITV 3 July, 2026 Media releases National Indigenous Television (NITV) has strengthened its commitment...

03/07/2026

2023

1 February 2023 SHARE Facebook Twitter Linkedin Email Munich, Germany, 1st February 2023: Cinegy GmbH, the premier provider of software technology for digit...

03/07/2026

Broadcast Solutions Acquires BFE

Share Copy link Facebook X Linkedin Bluesky Email...

03/07/2026

AdClarity Expands CTV Offering to 20 Countries

Share Copy link Facebook X Linkedin Bluesky Email...

03/07/2026

Mountain West Conference Launches SVOD Service With New Revenue Model

Share Copy link Facebook X Linkedin Bluesky Email...

03/07/2026

Death Star

Death Star Andy Marken July 2, 2026 0 Comments Look, I can't get involved. I've got work to do. It's not that I like the Empire; I hate i...

03/07/2026

Berklee's New Visual Identity: Honoring Our History, Building for What's Next

Berklee's New Visual Identity: Honoring Our History, Building for What's...

03/07/2026

July 01, 2026

Scripps Research scientists awarded $2M to advance global disease surveillance Two Gates Foundation grants will expand wastewater surveillance and AI-driven dis...

03/07/2026

July 02, 2026

Joan Pulupa joins Scripps Research faculty to study the organization of DNA in brain cells and its links to neurodegeneration Using smell-sensing neurons and ad...

02/07/2026

SVG Students To Watch: Abby Finke, University of Dayton

Entering her senior year, this hometown girl is paving a career in live sports production gaining experience in replay and audio and as a TD In the live-sports...

02/07/2026

SVG GameDay, Ep. 22: Winnipeg Jets Kyle Balharry - Going to Work in the Great White North

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