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/11/2026

Gravity Medias JockeyCam at Center of Melbourne Cup Carnival Busy Week of Horse Racing

It's been a big week in Australia horse racing as the Victoria Racing Club (...

06/11/2026

PBR Expands Production of Teams Championship With Third Mobile Unit, More Cameras

Additional gear includes a second, outside drone; a second slo-mo unit; and a wi...

06/11/2026

University of Alabama Installs Daktronics Displays at Coleman Coliseum

The University of Alabama has installed a new Daktronics display system at Coleman Coliseum in Tuscaloosa. It includes a 360-degree centerhung with four underbe...

06/11/2026

NEP Adds IP-Based Flypack Production Kits in the U.S.

NEP Americas, part of NEP Group, has expanded its remote production offering with new IP-based flypack production kits deployed from the U.S. and available to c...

06/11/2026

Telestream Appoints Joseph Hopkins Chief Revenue Officer

Telestream has appointed Joseph Hopkins Chief Revenue Officer. He has more than two decades of executive experience in media technology. In the role, he will fo...

06/11/2026

SVG GameDay, Ep. 38: Texas Rangers Chris DeRuyscher - Livin the Life at Globe Life Field

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

06/11/2026

Soaring in Stamford: Major League Soccer's Seth Bacon Details the Growth of MLS Productions

It's been nearly two years since MLS Productions made the move to WWE's ...

06/11/2026

With Decision Day on Deck, MLS Productions' Stamford Hub Prepares for 15 Matches in Five Hours

All 30 clubs take the field Saturday, and every camera, graphic, and feed runs t...

06/11/2026

GForce launch Oberheim Matrix-12

Latest official Oberheim collaboration arrives Following on from the launch of their new and improved website, GForce Software have released their latest of...

06/11/2026

Avid introduce Pro Tools 2026.11

Pro Tools Extensions, MPE support & more Avid have just released Pro Tools 2026.11, which introduces built-in stem separation, a new Extensions format that ...

06/11/2026

Heritage Audio's i73 Pro gains NAM A2 support

Interface range can now run captures on internal DSP Heritage Audio have just launched a firmware update that makes it possible for their i73 Pro audio inte...

06/11/2026

SMALL TOWN. BIG DREAMS. ABSOLUTE MAYHEM. The crown is up for grabs in bold new SBS Original, Miss Sultanah

SMALL TOWN. BIG DREAMS. ABSOLUTE MAYHEM. The crown is up for grabs in bold new S...

06/11/2026

FCC Releases More Details on Nationwide EAS Test

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

Pro Tools Adds New AI-Powered Extension for Separating Audio Into Individual Elements

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

Sage Issues Mandatory Security Update for ENDECS

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

CNN Reports Record Setting Viewership Numbers for Midterms Coverage

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

Democratic Senator Sends Warning to FCC Chairman Carr

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

Maxon Expands Creative Possibilities with New Touch and S...

Maxon Expands Creative Possibilities with New Touch and Spatial Experiences in Cinema 4D and ZBrush for Apple Products New capabilities let artists interact wi...

06/11/2026

Big Daddy Kane to Be Inducted Into Berklee's Hip-Hop Hall of Fame

Big Daddy Kane to Be Inducted Into Berklee's Hip-Hop Hall of Fame The Grammy-winning emcee joins an iconic roster of inductees in an event that features s...

06/11/2026

NBC News Wins Midterm Elections Ratings Race

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

LG Ad Solutions Names Abhijit Pol SVP, Product and Engineering

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

Gravity Media's OB Rethink Delivers for Gravel Cycling Championship

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

VITEC to Retire Datapath Brand

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

NEP Americas Adds IP-Based Flypack Kits to Production Lineup

Share Copy link Facebook X Linkedin Bluesky Email...

06/11/2026

Black Friday Deals from Flanders Scientific, Inc - An Atomos Company

Black Friday Deals from Flanders Scientific, Inc - An Atomos Company Brie Clayton November 5, 2026 0 Comments Purchase any FSI monitor between now and...

06/11/2026

COW Jobs: Faith-Based UGC Video Creator - Remote

COW Jobs: Faith-Based UGC Video Creator - Remote Brie Clayton November 5, 2026 0 Comments Faith-Based UGC Video Creator (Remote, Part-Time) November...

06/11/2026

Thats Christmas Sorted: Sky brings entertainment icons to life in all dancing festive campaign

Friday 6 November 2026 That's Christmas Sorted: Sky brings entertainment ic...

06/11/2026

Fox Corporation Completes Acquisition of Roku

Fox Corporation Completes Acquisition of Roku FOX Is Now One of the Leading Streaming Businesses in the U.S., Inclusive of Roku, Tubi and FOX One Roku's...

06/11/2026

InterBEE. Tokyo. 18-20 November 2026

18-20 November Hall 6, stand #6413 (Restar Communications) Come and see us in Tokyo at InterBEE 2026, where you will find us with our partner Restar Communica...

06/11/2026

Exploring Water with Science Week on RT

Discover a week of themed programming and content across RT 's services Documentaries | Kids | Podcasts | Ireland's city of the future | More Includes...

06/11/2026

How NVIDIA Open Source Tools Are Helping Researchers Build Next-Generation 6G Networks

A year ago, NVIDIA open sourced its Aerial wireless software, joining Sionna and...

05/11/2026

SVG Students To Watch: Hunter Tempel, Marquette University

The Chicago native has emerged as a leader at Marquette's student-run production operation, directing broadcasts, mentoring peers, and building toward a car...

05/11/2026

Sky Sports to Show Exclusive Live Coverage of WTGL and Two More Years of TGL

Sky Sports will broadcast the inaugural 2026 and 2027 seasons of the women's TGL (WTGL) exclusively in the UK, as part of an expansion of its golf rights th...

05/11/2026

CP Communications Rigs Gravity Media SMARThead Robotic Cameras Over TCS New York City Marathon Start

CP Communications worked with Gravity Media to bring Gravity's SMARThead rob...

05/11/2026

Gravity Media Runs Remote Production of UCI Gravel World Championships From Melbourne

Gravity Media developed a remote production solution for Beyond Productions'...

05/11/2026

Canon Releases Firmware Update for Cinema EOS Cameras, Launches Camera Control Center

Canon U.S.A. has announced a firmware update for its Cinema EOS cameras, includi...

05/11/2026

Canon Marks 15 Years of the Cinema EOS System

Canon Inc. is celebrating the 15th anniversary of the Cinema EOS System this month, Canon U.S.A. announced. Launched in 2011 for professional video production, ...

05/11/2026

Canon Announces Cinema EOS Lens Kits and EOS C50 Videographer Kit

Canon U.S.A. has announced new Cinema EOS Lens Kits and an EOS C50 Videographer Kit. Sales are scheduled to begin in mid-November 2026. The lens kits pair the ...

05/11/2026

2026 Sports Broadcasting Hall of Fame: Dick Stockton, a Play-by-Play Announcer With a Journalistic Bent

Dick Stockton's broadcasting career was marked by longevity, versatility, an...

05/11/2026

Registration Open to Attend UFL 2027 Draft in St. Louis on Nov. 18

The United Football League Draft is set to take place at Ball Park Village in St. Louis on beginning on November 18 and the UFL today announced that players fro...

05/11/2026

Allen & Heath announce the Qu-3 & Qu-3D

Most compact Qu-series consoles to date Allen & Heath have just revealed two new additions to their Qu digital mixer line-up, the Qu-3 and Qu-3D. The new ar...

05/11/2026

Apple MacBook Pro PROLED XDR: First Impressions

We take a look at the first touchscreen-equipped Mac Peter Gabriel once sang: I have the touch. Now we all do. The new MacBook Pro with PROLED XDR Display b...

05/11/2026

SGL Carbon: Business performance in Q3 2026 supports an upward revision of the full-year earnings forecast

SGL Carbon's consolidated sales in the first nine months of 2026 totaled 59...

05/11/2026

Rohde & Schwarz and Pegatron validate FR3 phased array technology for dual stream MIMO at 13 and 15 GHz

Rohde & Schwarz and Pegatron validate FR3 phased array technology for dual strea...

05/11/2026

NBC News Highest Rated for Mid-Terms Election Coverage

Share Copy link Facebook X Linkedin Bluesky Email...

05/11/2026

Joseph Hopkins Joins Telestream as Chief Revenue Officer

Share Copy link Facebook X Linkedin Bluesky Email...

05/11/2026

TV Factory Deepens Commitment to 24i with Exclusive Swiss...

24i, the pioneering data-driven video streaming company, and TV Factory AG today announced a significant expansion and multi-year renewal of their strategic par...

05/11/2026

Telestream Appoints Joseph Hopkins as Chief Revenue Offic...

Telestream, a global leader in media workflow and measurement technologies, has just announced the appointment of Joseph Hopkins as Chief Revenue Officer (CRO)....

05/11/2026

How to Recreate the Classic Movie Star Trek Warp Effect in After Effects

How to Recreate the Classic Movie Star Trek Warp Effect in After Effects Graham Quince November 5, 2026 0 Comments How did the filmakers create the or...