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

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

07/05/2026

Sudan Digital Investigation Hub launches to support journalists navigating disinformation in conflict

Journalists reporting on Sudan are working in one of the most complex and fast-m...

07/05/2026

Victory+ CEO Neil Gruninger on the Impact of the Dallas Cowboys Deal, Creator-Led Content, and Free In-Market Access for Fans

Multi-year partnership positions Victory+ as a free home for Dallas Cowboys orig...

07/05/2026

SVG Students To Watch: Ella Peterson, University of Illinois

From sideline reporting to directing and producing, the talented sophomore is building a well-rounded foundation for a career in live sports production In the ...

07/05/2026

NAB 2026: Cobalt Digital Wins Two Future Best of Show Awards

Cobalt Digital has received two Future Best of Show awards at NAB Show 2026. The COBALT blueCORE platform was recognized by TV Tech, and the COBALT PACIFIC ULL-...

07/05/2026

Scripps National Spelling Bee Revamps Broadcast; Mina Kimes to Host, Embassy Rows Michael Davies to Produce

ESPN analyst Mina Kimes will host the televised semifinals and finals of the 202...

07/05/2026

MUBI Selects Bitmovin as Cloud VOD Encoding Partner

Bitmovin has announced that MUBI, the global film streaming platform, has selected Bitmovin as its cloud VOD encoding partner. Bitmovin's encoding infrastru...

07/05/2026

NBCUniversal Telemundo Enterprises and U.S. Soccer Extend Spanish-Language Media Rights Through 2030

NBCUniversal Telemundo Enterprises and the U.S. Soccer Federation have announced...

07/05/2026

Angel City Football Club and Victory+ Announce Regional Broadcast Partnership

Angel City Football Club (ACFC) and Victory have announced a regional broadcast partnership bringing live match coverage to fans across the greater Los Angeles...

07/05/2026

Spiideo Launches AI Highlights for Automated Highlight and Clip Creation

Spiideo has announced the launch of AI Highlights inside Spiideo Play, its automated sports production platform. AI Highlights combines video, event data, audio...

07/05/2026

Leostream Announces Unified HPC Remote Access Ecosystem for Post-Production and Enterprise Workflows

Leostream Corporation has announced a unified remote access ecosystem for high-p...

07/05/2026

Victory+ Adds Atlanta Dream Local Broadcasts to Free Streaming Platform

The Atlanta Dream has partnered with Victory to stream all locally broadcast Dream games for free, expanding the team's digital distribution strategy and g...

07/05/2026

Riedel Communications Appoints Marc Engroff as CFO; Frank Eischet Moves to Group COO Role

Riedel Communications has announced the appointment of Marc Engroff as Chief Fin...

07/05/2026

ARD Extends SES Satellite Distribution Agreement Through 2039

SES and ARD, Germany's largest public broadcasting network, have announced a long-term extension of their satellite distribution partnership through 2039. U...

07/05/2026

Case Study: How Pro Cheer League Built a Broadcast-First Arena Production

UpLight Technologies delivers a flexible video and lighting system for a new televised sportLaunching the Pro Cheer League required more than creating a compell...

07/05/2026

Full Day Productions and GSE Worldwide Launch Womens College Volleyball Showcase at AT&T Stadium

Full Day Productions and GSE Worldwide have announced Spikes Under the Lights, a...

07/05/2026

Deine persnliche Spotify DJ Experience ist jetzt in vier neuen Sprachen und weiteren Mrkten verfgbar

Seit dem Start im Jahr 2023 hat DJ (Beta) das personalisierte H rerlebnis von 94...

07/05/2026

Il DJ personalizzato di Spotify ora disponibile in 4 nuove lingue e in pi Paesi

Da quando stata presentata nel 2023, DJ (beta) ha aiutato a definire un'esperienza d'ascolto pi personalizzata per 94 milioni di utenti Spotify Premi...

07/05/2026

Your Personalized DJ Experience Is Expanding With 4 New Languages and More Markets

Since launching in 2023, DJ (beta) has helped shape a more personalized listenin...

07/05/2026

Seu DJ personalizado do Spotify t chegando em mais lugares - agora em 4 novos idiomas

Desde o lan amento em 2023, o DJ (beta) j ajudou a deixar a experi ncia de ouvi...

07/05/2026

Save Your Personal Podcast to Spotify and Listen Anywhere

From our earliest days, Spotify has been built on a simple principle: Great audio should be easy to reach. It's what's driven us to expand from music to...

07/05/2026

Spotify Celebrates API Heritage Month With New Music and Artist Spotlights

Asian and Pacific Islander artists continue to shape the global soundscape, pushing creative boundaries and connecting with fans worldwide. This Asian & Pacific...

07/05/2026

Symphonic Elements Chooir by UJAM

Company announce long-requested choir instrument In the latest expansion of their Symphonic Elements series, UJAM have introduced an all-new vocal instrumen...

07/05/2026

Buchla debut Ziggy synthesizer

Modular-inspired sound generation with digital control Buchla have introduced Ziggy, a new compact synthesizer built around the company's complex oscill...

07/05/2026

Polyend Drums hybrid drum machine

Combines analogue voices with digital synthesis and sequencing Polyend have announced Drums, a new hybrid analogue and digital drum machine that combines sy...

07/05/2026

Nektar Panorama CS12: Reaper & Fender Studio Pro support

Control surface now officially supports four DAWs When Nektar launched the Panorama CS12 control surface, it worked exclusively with Apple's Logic Pro, ...

07/05/2026

SGL Carbon: Expected lower sales, but EBITDA margin improved. Forecast confirmed

In the first quarter 2026, SGL Carbon generated consolidated sales of 184.5 million, which was 49.8 million, or 21.3%, lower than in the prior year (Q1 2025: ...

07/05/2026

Rohde & Schwarz and Greenerwave achieve precise and fast ESA antenna characterization using near-field technology

Rohde & Schwarz and Greenerwave achieve precise and fast ESA antenna characteriz...

07/05/2026

L3Harris Red Wolf + SKY RAIDER II INTERNATIONAL: Unmatched Flexibility for Kinetic Strike, EW, ISR and Support Missions

Two multi-role L3Harris products - the Red Wolf launched effects vehicle and SK...

07/05/2026

US Air Force Selects L3Harris to Develop Digital Infrastructure for its Advanced Battle Management System Network

L3Harris will be developing key features of a secure and resilient digital infra...

07/05/2026

New Nielsen Report Shows The Profound Impact of Asian Influence on Sports and Pop Culture

Alysa Liu and Shohei Ohtani Help Drive Viewership as 91 of the Top 100 Broadcast...

07/05/2026

IAB Tech Lab Introduces Standardized Signals For CTV Ad Portfolio

Share Copy link Facebook X Linkedin Bluesky Email...

07/05/2026

Cobalt Digital Wins Two Future Best of Show Awards at 202...

Cobalt Digital Wins Two Future Best of Show Awards at 2026 NAB Show Manufacturer Recognized by TV Tech and TVBEurope for Innovation in signal processing Cobal...

07/05/2026

FOR-A delivers creativity practicality and technical exce...

Software and hardware platforms, AI power and user-friendliness on show...

07/05/2026

Intinor brings advanced IP transport diagnostics and HDR...

Intinor will demonstrate its latest technical enhancements for the Direkt series at BroadcastAsia 2026. With a continued focus on reliable contribution and remo...

07/05/2026

Bitmovin Powers Global Film Streaming Platform MUBI

Bitmovin has announced that MUBI has chosen Bitmovin as its cloud VOD encoding partner, replacing MUBI's legacy on premises encoding setup to improve scalab...

07/05/2026

Meet Graduates from Berklees Class of 2026

Meet Graduates from Berklees Class of 2026 Members of this years graduating class reflect on their proudest moments at Berklee and look ahead to whats next. ...

07/05/2026

Convergence is Now Established Reality,' Says NAB 2026 Report

Share Copy link Facebook X Linkedin Bluesky Email...

07/05/2026

Interra Systems to Showcase Best in Class QC Monitoring a...

At BroadcastAsia 2026, Interra Systems will demonstrate its latest innovations in automated quality control (QC), real-time monitoring, and captioning. The comp...

07/05/2026

PlayBox Neo shines a spotlight on delivering Secure Scala...

At this year's Broadcast Asia, PlayBox Neo is set to unveil recent innovations across its PlayBox Neo Suite and integrated range of broadcast media solution...

07/05/2026

BFBS selects Synamedia to deliver New Digital Platform fo...

Strategic three-year partnership marks delivery phase of BFBS' next-generation media vision Media organisation and military charity BFBS (British Forces Br...

07/05/2026

Amagi Unlocks New Opportunities for CTV Performance with...

Amagi, the agentic industry cloud platform for unified broadcast, streaming, and monetization, today announced the availability of its In-Content Ads offering v...

07/05/2026

Lightware Introduces Rack Taurus For Clean Centralized AV...

Lightware Visual Engineering has developed Rack Taurus for rack-based environments such as education and corporate training spaces. It enables clean and simple ...

07/05/2026

Jigsaw24 Showcases End-to-End Media Workflows at MPTS 202...

Jigsaw24, the UK's leading media equipment supplier and systems integrator, will showcase its expanded end-to-end workflow capabilities at MPTS 2026, signal...

07/05/2026

Ease Live Granted US Patent for Technology Powering Perfe...

Ease Live, an Evertz company, today announced that it has been granted a US Patent for its proprietary graphical overlay technology, the foundation for interact...

07/05/2026

Leader prepares advanced Test and Measurement showcase fo...

Test & measurement innovator Leader Electronics of Europe will present an extensive range of Leader, PHABRIX and LeaderPhabrix test and measurement solutions at...