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

FCC Chairman Carr Remains Defiant Despite Court Striking Down ABC License Review

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Online Petition Calls for Congress to Limit FCC Authority in Disney/ABC License Reviews

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

01/12/2026

Blue Lucy and Moments Lab turn rights holders archives in...

New integration connects Blue Lucys rights-aware content management platform with Moments Lab's AI platform, so teams can find, compile and publish archive ...

01/12/2026

Scientists develop a more comprehensive approach to track measles using wastewater

LA JOLLA, CA-One cheap and reliable, albeit stinky tool has become an increasing...

01/12/2026

Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations

Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations Brie Clayton November 30, 2026 0 Comments Beam Dynamics has introduced new Model ...

01/12/2026

Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF

Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF Brie Clayton November 30, 2026 0 Comments Craftshow Digital completes Singing River He...

01/12/2026

Gravity Media acquires MOOV to expand broadcast graphics and virtual production capabilities

Gravity Media acquires MOOV to expand broadcast graphics and virtual production ...

01/12/2026

OZ Racing's Rally Legend Shot on URSA Cine 12K LF and PYXIS 12K

OZ Racing's Rally Legend Shot on URSA Cine 12K LF and PYXIS 12K Brie Clayton November 30, 2026 0 Comments From rugged mountain trails to high spee...

30/11/2026

MASVs New Gameday Solution Offers Near Real-Time Automated Delivery of Sports Media

MASV, the global file transfer platform built for teams moving massive content a...

30/11/2026

Free Registration for the 2026 SVG SUMMIT Closes on Dec. 1 at 5 p.m. ET!

Free registration for THE SVG SUMMIT closes on Dec. 1 at 5 p.m. ET, so don't miss out! After the deadline, tickets will cost $150 to attend the event. CLICK...

30/11/2026

Voodoo Lab refresh the Amp Selector line-up

ABY & Pro amp switcher models introduced Guitar power supply and switching experts Voodoo Lab have just revealed two products that build on the foundations ...

30/11/2026

Bits Happen from ALM/Busy Circuits

New eight-bit digital VCO announced ALM/Busy Circuits' latest Eurorack module combines the immediacy of an analogue VCO with the flexibility of digital ...

30/11/2026

StageBox 2 now available

Audio inputs, backing playback, PDF support & more In the April 2026 issue, we ran a review on StageBox, a handy macOS and Windows application designed to h...

30/11/2026

Nielsen Completes Acquisition of DoubleVerify

Combination creates a leading independent media intelligence platform across all workflows and channels. New York, NY - November 30, 2026 - Nielsen Holdings ( ...

30/11/2026

Ampere: U.S. Overtakes Germany as World's Second-Largest Soccer Media Rights Market

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

30/11/2026

New Viz Engine 5.6 Integrates Gaussian Splatting

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

Nielsen Closes Deal to Buy DoubleVerify

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

DPA Microphones Earns 2027 NAMM TEC Award Noms for 4097 C...

DPA Microphones is proud to announce that two of its innovative audio solutions have been named as finalists in the 2027 NAMM TEC Awards. This includes the 4097...

30/11/2026

Media Tech Journalist Gary Arlen Has Died

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

FCC Chairman Carr Remains Defiant Despite Court Loss

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

NAB Show Registration Opens Tomorrow

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

From innovation to impact - Lightware reflects on 2026

For Lightware, 2026 has been a year of continued progress, marked by significant developments across its connectivity and control portfolio. Alongside advancing...

30/11/2026

Hiltron Reports a Successful and Expanding Space Tech Exp...

Hiltron Communications reports a successful Space Tech Expo Europe 2026, held from Tuesday 17 through Thursday 19 November across five halls of the Messe Bremen...

30/11/2026

Calrec expands into the Pro AV market with Type RT at ISE...

Calrec will be located at Stand 4P800. Broadcast and Pro AV united ISE 2027's theme, When Worlds Unite, reflects Calrecs own approach. Stadiums, univers...

30/11/2026

CGI launches OpenMedia Evolve and brings a new generation...

CGI (TSX: GIB.A) (NYSE: GIB), one of the largest independent IT and business consulting services firms in the world, today launched OpenMedia Evolve, the next g...

30/11/2026

Dan Borrelli joins Sky as Head of YouTube

Monday 30 November 2026 Dan Borrelli joins Sky as Head of YouTube Sky has appointed Dan Borrelli as Head of YouTube for Sky Entertainment Group, in a newly cr...

30/11/2026

Sky News launches Ask Sky News, a new way to search and explore the news

Monday 30 November 2026 Sky News launches Ask Sky News, a new way to search and explore the news AI-powered feature lets audiences ask questions, get answers ...

30/11/2026

RedNet TNX delivers mission-critical redundancy for Chicago-based live sound engineer, Andrew Dewar

RedNet TNX delivers mission-critical redundancy for Chicago-based live sound eng...

30/11/2026

Apple unveils all\u2011new (RED) collection of products - PRESS RELEASE - Posted on 30 November 2026

CUPERTINO, CALIFORNIA Apple today announced an all-new (RED) collection - includ...

30/11/2026

Apple Music Replay launches redesigned highlight reel and all\u2011time view - UPDATE - Posted on 30 November 2026

Apple Music today debuted Replay '26, a redesigned look back at the year in ...

30/11/2026

Apple Podcasts reveals the top shows of 2026 and introduces Replay - UPDATE - Posted on 30 November 2026

Today, Apple Podcasts unveiled the most popular podcasts of 2026, celebrating th...

30/11/2026

RT delivers blockbuster movies, unmissable music and festive favourites as homes across Ireland can't wait this Christmas

Launching the first of three Christmas content announcements this week, RT is s...

29/11/2026

Boroz: Free plug-in from fedDSP

Combines compression, saturation & EQ Said to be the easiest way to turn your sound all the way to 11 , fedDSP's latest release brings together compres...

29/11/2026

New Life for the Original Symphony I/O: An Independent Software Project

New Life for the Original Symphony I/O: An Independent Software Project With Apogee's cooperation, an independent developer is helping bring the original Sy...

28/11/2026

Melbourne Instruments update the Roto-Control

Cubase & FL Studio integration improved Melbourne Instruments have just released the latest update for their motorised MIDI controller, adding Cubase and FL...

28/11/2026

Apogee Holiday Sale 2026: Major Savings + Up to 20 Free Plugins

Apogee Holiday Sale 2026: Major Savings + Up to 20 Free Plugins November 2 - December 31, 2026 Apogee's 2026 holiday sale brings special US pricing to s...

27/11/2026

KIT Plugins release H2 0011 & H2 Comp

First plug-ins in latest partnership range KIT Plugins have just announced the launch of the first two plug-ins to be created in partnership with Detroit-ba...

27/11/2026

Radical Bundle 5 from Sound Radix

Three new plug-ins added to collection Sound Radix's flagship plug-in bundle has just received its biggest update yet, with Powair 2, Mute matic Studio ...

27/11/2026

DANCING WITH THE STARS WELCOMES BACK POPULAR PRO DANCER AND INTRODUCES BRAND NEW FACE FOR 10th SERIES

RT has announced the professional dancer line-up for the upcoming tenth season ...

27/11/2026

RT Register of External Activities for Q1/2026 (statistical summary)

RT is today publishing the statistical summary of RT 's Register of External Activities for the first quarter of 2026. This includes external activities fo...

26/11/2026

Aim Audio introduce the Essence+ Pack

Mic, shockmount & pop shield bundle announced Aim Audio have just introduced a new hardware bundle that combines their cardioid condenser mic with a shockmo...

26/11/2026

Blox Grain from Pine DSP

Turn any audio input into shimmering clouds Pine DSP have just introduced a new granular effect that can run as a standalone plug-in, or as a module withi...

26/11/2026

Akai update the MPC Sample

Now supports user-created Knob FX Akai's portable MPC has just received a firmware update that introduces a range of user-requested features and tackles...

26/11/2026

Top Black Friday & Cyber Monday Deals

Shop the best deals this weekend Sale season is upon us and to help SOS readers cut through all the noise, weve done the legwork for you and rounded up some...

26/11/2026

Maxon Cyber Sale - Buy Any Annual Plan, Get Maxon Plus Starter Free For a Month

Maxon Cyber Sale - Buy Any Annual Plan, Get Maxon Plus Starter Free For a Month Brie Clayton November 25, 2026 0 Comments Every annual plan, from Cine...

26/11/2026

Deals on Matthews Studio Equipment Select Gear for Black Friday - now thru 11/30

Deals on Matthews Studio Equipment Select Gear for Black Friday - now thru 11/30 Brie Clayton November 25, 2026 0 Comments Black Friday: Stands & Clam...

26/11/2026

DoubleVerify to Support LG Ad Solutions' Home Screen Inventory

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

26/11/2026

The Thanksgiving 1986 DX Opening That Flooded North American Dials

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

26/11/2026

Beyond COP31: Why standards matter for an all-electric future

There may be no consensus in the negotiating room. There is no ambiguity in the science, said UN Secretary-General Ant nio Guterres reacting to the lack of con...