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

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

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

06/06/2026

Streaming Platform FIFA+ Launches on DAZN

Share Copy link Facebook X Linkedin Bluesky Email...

06/06/2026

Telycam Expands Broadcast PTZ Camera Lineup

Share Copy link Facebook X Linkedin Bluesky Email...

06/06/2026

Matrox Video Launches Paradigm Shift with Maevex MGX Seri...

Matrox Video today announced the launch of the Matrox Maevex MGX Series, a new lineup of IPMX-ready video encoders and decoders with USB support that is enginee...

06/06/2026

Atomos 4K Sumo PRO-19 Now Shipping

Atomos (booth# S1006) announced immediate availability of Sumo PRO-19, a new 19-inch 4K HDR monitor-recorder-switcher designed as a central production hub for m...

06/06/2026

DoPchoice Modular SNAPBAG System for Creamsource Vortex

Cine Gear Expo 2026 DoPchoice introduces a complete light-shaping system for the new Creamsource Vortex2, further expanding the fixture's wide versatility...

06/06/2026

SmallHD Announces the New OLED 16 Production Monitor

SmallHD will debut a new OLED 4K production monitor with a 16 display, the OLED 16, that combines OLED's industry-benchmark contrast ratio, exceptional col...

06/06/2026

Cine Gear Expo Announces 2026 Awards of Excellence Recipi...

Ed Lachman ASC, Caleb Deschanel ASC, and M. David Mullen ASC Being Honored at the 30th Annual Cine Gear Expo LA Cine Gear Expo has announced the recipients of ...

06/06/2026

ZEISS Introduces Horizon Anamorphic Full - Frame 2x Anamo...

World premiere at Cine Gear Expo Los Angeles, June 5-6...

06/06/2026

DoPchoice Debuts Airglow 8 by 2 Frame for RuPixel Canvas

See it first at Cine Gear Expo LA, Booth #S1703 DoPchoice introduces the latest addition to its inflatable AIRGLOW series the 8 2 Frame for RuPixel Canvas. ...

05/06/2026

LSUs Sarah Ramundt on Celebrating the One-Year Anniversary of The Brand

The university-wide initiative has pushed their creative content to a new level Although collegiate athletics at a single institution can contain numerous spo...

05/06/2026

SVG GameDay, Ep. 18: New York Islanders Brooklyn Boyars - A Career Filled With Championships

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

05/06/2026

Synamedia Enters New Chapter Following Lumine Group Acquisition Agreement

Synamedia has announced that Lumine Group has agreed to acquire its Video Network business. The company is positioning the transition as the start of a new phas...

05/06/2026

Ateme, BCE, and Scaleway Announce Sovereign Cloud Media Supply Chain Partnership

Ateme, Broadcasting Center Europe (BCE), and Scaleway have announced a strategic partnership to deliver a cloud-based media supply chain covering ingest through...

05/06/2026

Audinate Adds Three Models to Dante AVIO Install Adapter Line

Audinate has announced three new additions to its Dante AVIO Install adapter series: a 4-Channel Analog Input, a 4-Channel Analog Output, and a 2-Ch In/2-Ch Out...

05/06/2026

Sportradar Extends Data and AV Betting Rights Agreement for Wimbledon Beyond 2026

Sportradar Group AG has announced a multi-year extension of its exclusive global...

05/06/2026

M6 Group to Broadcast FIFA World Cup 2026 in 4K UHD via Fransat Satellite Platform

The M6 Group will broadcast FIFA World Cup 2026 matches live and in Ultra High D...

05/06/2026

The Athletic Adds PGA TOUR Highlights to Golf Coverage

The Athletic has announced that PGA TOUR highlights will be integrated into its golf coverage beginning with the Memorial Tournament presented by Workday. PGA T...

05/06/2026

Op-Ed: Beyond the Stadium: Why Real-Time Visual Intelligence Will Define World Cup 2026 Security

When the FIFA World Cup arrives in North America in 2026, it will bring more tha...

05/06/2026

FIFA+ Launches Exclusively on DAZN

FIFA and DAZN have announced the launch of FIFA exclusively on DAZN, consolidating FIFA's content portfolio within DAZN's sports platform. The move fol...

05/06/2026

Telemundo Announces Group Stage Broadcast Schedule and Talent Assignments for FIFA World Cup 2026

Telemundo's exclusive Spanish-language coverage of the FIFA World Cup 2026 G...

05/06/2026

Peacock to Stream Telemundos FIFA World Cup 2026 Coverage in Dolby Vision and Dolby Atmos

Dolby Laboratories and NBCUniversal have announced that Peacock will stream Tele...

05/06/2026

Formula 1 Extends Las Vegas Grand Prix Through 2037

Formula 1 has announced a 10-year extension to keep the Las Vegas Grand Prix on the F1 calendar through 2037. Las Vegas Grand Prix, Inc., Clark County, and the ...

05/06/2026

Inside SailGP New York: How Riedel Provides Tech Backbone for Challenging Production Effort

The broadcast-engineering team overcomes wind, speed, and salt water - and dista...

05/06/2026

Virtual Eye Powers Broadcast Graphics Across Golf Productions in Busy Three-Event Week

Deploying both onsite and remote crews, the company is providing calibrated-came...

05/06/2026

ESPN Pivots From REMI to Full On-Site Production for UFL Playoff Game on Daytonas Blank Canvas

With Inter&Co Stadium unavailable, ESPN's UFL team rebuilt its broadcast pla...

05/06/2026

Free Registration for SVG Regional Sports Production Summit Ends Today!

One of the most exciting and informative events on the SVG annual event calendar is the Regional Sports Production Summit, an annual gathering of industry profe...

05/06/2026

FOX Returns to Saratoga Race Course for 158th Running of Belmont Stakes

For the race's third year at the historic racetrack, the broadcaster has added cameras and will incorporate multiple drones The 158th edition of the Belmon...

05/06/2026

Ratings Roundup: NBCs Spurs-Thunder Game 7 Best Since 2016, ESPNs Stanley Cup Final Opener Hits Seven-Year High

Ratings Roundup is a rundown of recent rating news and is derived from press rel...

05/06/2026

Sonuscore release LUX Orchestral Strings Essentials

Built from the same recordings as flagship library Sonuscore's LUX Orchestral Strings has been met with widespread praise since its launch in late 2025,...

05/06/2026

RME unveil the ADI-2 Pro EX

High-end converter, interface & headphone amp upgraded Said to represent the next evolution of RME's all-in-one reference converter concept, the all-new...

05/06/2026

Soundgas Sounds: Latest prize draw announced

Win a Soundgas Type 636P & Type G preamps Soundgas, one of the UK's leading vintage and boutique audio equipment specialists have just announced the lau...

05/06/2026

New leadership of Technology Systems Division at Rohde & Schwarz

New leadership of Technology Systems Division at Rohde & Schwarz On July 1, 2026, Hansj rg Herrbold and Andreas H gele will take over as Executive Vice Presid...

05/06/2026

Hitachi and Intel announce strategic collaboration to accelerate AI transformation across key industries

Hitachi and Intel announced a strategic collaboration to explore opportunities t...

05/06/2026

Nielsen, Mediaocean Announce New Integration to Power The Next Phase of Data-Driven Linear, Advanced Audience Measurement

MRI-Simmons and S&P Global Mobility are expanding advanced audience capabilities...

05/06/2026

Latest Nielsen data reveals insurance advertising climbs as Australians weigh cost, cover and loyalty

New Nielsen data shows insurance ad spend grew 11%, while consumers remain highl...

05/06/2026

Nielsen Adds New Audience Data Partnerships

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

ASG Promotes Joe Marchitto to Western Regional CTO

ASG Promotes Joe Marchitto to Western Regional CTO Brie Clayton June 5, 2026 0 Comments Appointment to Support Engineering Alignment and Client Experi...

05/06/2026

Stargate Studios Colombia Uses DaVinci Resolve Studio for Vertical Microdramas

Stargate Studios Colombia Uses DaVinci Resolve Studio for Vertical Microdramas Brie Clayton June 5, 2026 0 Comments End to end post in one platform al...

05/06/2026

People Need to Come First When We Use AI

People Need to Come First When We Use AI Andy Marken June 5, 2026 0 Comments It's just surviving. Life's very existence requires destruction....

05/06/2026

Fahad Haider Joins NESN as VP, Operations and Engineering

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

GatesAir Opens New Brazil Office to Back DTV+ Rollout

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

Supreme Court Upholds FCC's Authority to Levy Fines

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

Montclair State University Will Run NJ PBS

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

Merkhet's Sam Matheny Urges Congress to Expedite BPS Deployment

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

Sinclair Launches NextGen TV Campaign in Columbus, Ohio

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

NAB Releases New Keep the Game On' Spot

Share Copy link Facebook X Linkedin Bluesky Email...

05/06/2026

NCTC, ACAC Going to Disney World for Independent Show

Share Copy link Facebook X Linkedin Bluesky Email...