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

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

28/09/2026

First Baptist Nashville Taps Clear-Com for Production Coms

Share Copy link Facebook X Linkedin Bluesky Email...

28/09/2026

IEEE Announces Award for Leadership in Developing HEVC/H.265

Share Copy link Facebook X Linkedin Bluesky Email...

28/09/2026

Nakadi Introduces Live to Theater Service Powered by Pate...

Nakadi, a global streaming technology innovator dedicated to engineering a new era of digital media delivery, today announced its Live to Theater service based ...

27/09/2026

Boss launch the EX-4 Effects Expander

New compact pedal packs in 120 effects The latest multi-effects pedal from Boss is a compact unit that promises to give any pedalboard a massive boost in s...

26/09/2026

ESPN Operations, Production Teams Plan for Every Scenario as WNBA Playoffs Tip Off

With short turnaround between game selections, ESPN's operations team is pla...

26/09/2026

Prime Video Scales Up for First WNBA Postseason, Adding Cameras, Analysts, Coach Mics, and NBA Mobile Units

Prime Video will use GCV's Bird and Magic mobile units for its inaugural WNB...

26/09/2026

NBC Sports Tips Off First WNBA Postseason in 20+ Years Using Sunday Night Basketball as a Production Baseline

Studio show moves on-site as network models playoff coverage on its NBA flagship...

26/09/2026

Ratings Roundup: Cowboys-Commanders Leads NFL Week 2 With 27.2 Million, College GameDay Posts Best Week 3 Ever

Ratings Roundup is a rundown of recent ratings news and is derived from press re...

26/09/2026

From Sketch to Strut, Unzipped Returns to the Sundance Film Festival at 30

Douglas Keeve attends the 2025 Sundance Film Festival screening of Unzipped at the Egyptian Theatre. (Photo by Andrew H. Walker/Shutterstock for Sundance Film...

26/09/2026

Native Instruments update Maschine

Launched alongside three new expansion packs In celebration of their 30th anniversary, Native Instruments have released a major update for their Maschine 3 ...

26/09/2026

YouTube Embraces Microdramas with Features for Episodic Shorts

Share Copy link Facebook X Linkedin Bluesky Email...

26/09/2026

Civil Rights Groups Urge Sen. Cruz to Delay Thumann Severs FCC Confirmation

Share Copy link Facebook X Linkedin Bluesky Email...

25/09/2026

SVG GameDay, Ep. 32: National Hockey Leagues John Bochiaro - Leading the Leagues In-Venue Efforts

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

25/09/2026

HBS Taps Ronald den Hollander as CEO

Infront has named Ronald den Hollander as CEO of its Host Broadcast Services (HBS) subsidiary, effective 1 October 2026. The appointment follows the previously ...

25/09/2026

NABA to Host Cyber University 2.0 Cybersecurity Summit in New York

The North American Broadcasters Association (NABA) will hold Cyber University 2.0, a full-day cybersecurity summit for the broadcast and media industries, on Tu...

25/09/2026

Alpha Networks and Ateme Deliver Low-Latency Video Platform for International Sporting Event

Alpha Networks and Ateme have delivered a joint video platform for the digital d...

25/09/2026

Viaplay Migrates Free-to-Air Channels to Encompass Altitude Scheduling

Encompass Digital Media has announced the migration of multiple Viaplay free-to-air channels - TV3, TV6, TV8, and TV10 - to its Altitude Scheduling platform. Al...

25/09/2026

NAB Show New York 2026 Set for October 21-22 at Javits Center

NAB Show New York 2026 will take place October 21-22 at the Jacob K. Javits Convention Center in New York City. Registration is open at nabshow.com/newyork. Th...

25/09/2026

NHL Network to Air NHL Tonight, NHL Now, NHL Tonight: First Shift, and On The Fly During 2026-27 Season

NHL Network has announced its studio programming lineup for the 2026-27 regular ...

25/09/2026

First Baptist Nashville Installs Clear-Com Arcadia Central Station

Clear-Com has announced that First Baptist Nashville has upgraded its production communications with a Clear-Com intercom system as part of a sanctuary technolo...

25/09/2026

Broadcast Management Group Upgrades to EVS XT-VIA Platform at Cloud Control Center

Broadcast Management Group (BMG) has deployed EVS XT-VIA live video production s...

25/09/2026

BBright Adds dotCentral as U.S. Sales and Support Partner

BBright, a Hexaglobe Group company, has announced that dotCentral has joined as a sales and support partner in the United States. BBright's portfolio cover...

25/09/2026

MeyerPro Deploys ROE Visual Graphite GP 2.6 for Acumatica Summit 2026

MeyerPro delivered audio, video, broadcast, and LED production for the Acumatica Summit 2026 at the Seattle Convention Center's Summit Building, January 25-...

25/09/2026

PWHL to Hold Inaugural All-Star Weekend in Toronto on March 7

The Professional Women's Hockey League has announced its inaugural All-Star Weekend, to be held Saturday, March 7, 2026, at Scotiabank Arena in Toronto. The...

25/09/2026

Presidents Cup Makes Leap to 1080p HDR as NBC Sports, PGA TOUR Step Up Coverage

The 2026 Presidents Cup is underway at Medinah Country Club outside of Chicago with Team USA and an International Team of men's golfers facing off for four ...

25/09/2026

SVG Remote Production Forum Goes Inside WBDs Techwood Facility, Maps the Next Phase of REMI Production

Warner Bros. Discovery's Atlanta hub hosted a day of discussion on REMI prod...

25/09/2026

Antares release AutoTune Advanced

Algorithm update & new DVA vibrato-detection engine A new flagship version of Antares' iconic pitch-correction software has arrived, and along with a co...

25/09/2026

Two notes to launch the Captor X Pro

New flagship unit to arrive in early 2027 Two notes Audio Engineering have revealed that a new and improved version of their hugely popular reactive load bo...

25/09/2026

Finalist 2 from Tim Exile

AI-free mixing tool gets an upgrade Launched in October 2025, Tim Exiles Finalist is an algorithmic mixing tool that's been designed for those who don&#...

25/09/2026

Rohde & Schwarz Mobile Test Summit 2026 puts the spotlight on 6G - registrations open

Rohde & Schwarz Mobile Test Summit 2026 puts the spotlight on 6G - registrations...

25/09/2026

IBC 2026: When Intelligence Became the Industry's New Competitive Advantage

In our latest blog, Tim Pearson reflects on IBC 2026 and considers the main learnings against an industry that saw AI finally coming out of the labs and into pr...

25/09/2026

Digital Anarchy Releases Newest Version of its Real-Time Skin Retouching Tool for Video

Digital Anarchy Releases Newest Version of its Real-Time Skin Retouching Tool fo...

25/09/2026

Blackmagic Design Used on More Than 50 Summer Films in 2026

Blackmagic Design Used on More Than 50 Summer Films in 2026 Brie Clayton September 25, 2026 0 Comments Hero image: Disclosure Day Blackmagic Design p...

25/09/2026

How I Automated Social Media Resizing in After Effects - Free Script

How I Automated Social Media Resizing in After Effects - Free Script Graham Quince September 25, 2026 0 Comments If your text keeps getting cut off on...

25/09/2026

IBC2026 celebrates collaborative breakthroughs as it anno...

IBC has unveiled the winners of the prestigious IBC2026 Innovation Awards at an event held at the RAI Amsterdam on Sunday 13 September, honouring collaborative ...

25/09/2026

IBC2026 brings global media industry together to turn inn...

IBC2026 brought the global media, entertainment and technology community together for four days of business, innovation and collaboration at the RAI Amsterdam. ...

25/09/2026

Lightware Helps Integrators Overcome MacBook Neo USB Topo...

Lightware testing has revealed that each USB-C port on Apple's new MacBook Neo consumes three of the seven USB tiers available under the USB specification, ...

25/09/2026

Lightware Expands Education Support With New Products and...

Lightware is supporting educational institutions in building modern learning environments by combining professional training with education-focused AV technolog...

25/09/2026

Study: Only 10% of Young Adults Watched Local TV News Last Week

Share Copy link Facebook X Linkedin Bluesky Email...

25/09/2026

Optimum, A+E Global Media Sign New Distribution Agreement

Share Copy link Facebook X Linkedin Bluesky Email...

25/09/2026

MPA, Unions Back 'Motion Picture, Television, and Entertainment Revitalization Act

Share Copy link Facebook X Linkedin Bluesky Email...

25/09/2026

NAB Show New York Announces More Speakers and Programming Highlights

Share Copy link Facebook X Linkedin Bluesky Email...

25/09/2026

Comcast NBCU, NBCUniversal Local Award $2.5 Million to Nonprofits

Share Copy link Facebook X Linkedin Bluesky Email...

25/09/2026

Orange Belgium Strengthens Its Consumer and B2B TV Servic...

Long-Standing Customer Renews Multiyear Contract for VO's Secure Video Player, Content Security, and Device Monitoring Solutions Viaccess-Orca (VO), a glob...

25/09/2026

Automate Video Progress Bars in After Effects - No Keyframes!

Automate Video Progress Bars in After Effects - No Keyframes! Graham Quince September 24, 2026 0 Comments Learn how to create an automated video playb...

25/09/2026

How to watch an unmissable weekend of womens football on Sky Sports and NOW

Friday 25 September 2026 How to watch an unmissable weekend of women's football on Sky Sports and NOW Sky Sports and NOW will broadcast seven live games f...

25/09/2026

YAGA trailer released, coming exclusively to Sky and NOW on 31 October in the UK and Ireland

Friday 25 September 2026 YAGA trailer released, coming exclusively to Sky and N...