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

09/12/2025

2025 Sports Broadcasting Hall of Fame: Pam Oliver, Sideline Icon Who Redefined the Role

2025 Sports Broadcasting Hall of Fame: Pam Oliver, Sideline Icon Who Redefined t...

09/12/2025

SVG Summit 2025 Technology Exhibits Preview, Part 2

SVG Summit 2025 Technology Exhibits Preview, Part 2By Jason Dachman, Editorial Director, U.S. Tuesday, December 9, 2025 - 7:17 am Print This Story | Subscr...

09/12/2025

SVG Summit 2025 Preview: Cloud Production Workshop Spotlights Live and Non-Live Workflows in the Cloud

SVG Summit 2025 Preview: Cloud Production Workshop Spotlights Live and Non-Live ...

09/12/2025

Next-Generation Content Protection: Multi-Technology Security is Integral to Combating New Threats

Next-generation content protection: Multi-technology security is integral to com...

09/12/2025

CBS Sports Provides One-of-a-Kind Production' for UEFA Champions League Crossover Event

CBS Sports Provides One-of-a-Kind Production' for UEFA Champions League Cro...

09/12/2025

Spanish Professional Basketball League Relies on NETGEAR AV, MAM Tech for Seamless Production

Spanish Professional Basketball League Relies on NETGEAR AV, MAM Tech for Seamle...

09/12/2025

SVG Sit-Down: St. Thomas's Mike Gallagher and Casey Eakins on the Tommies' Bold Leap to Division I and How Video Plays a Key Role

SVG Sit-Down: St. Thomas's Mike Gallagher and Casey Eakins on the Tommies...

09/12/2025

Free Registration for the 2025 SVG Summit Closes Today at 5 p.m. ET!

Free Registration for the 2025 SVG Summit Closes Today at 5 p.m. ET!After the deadline, tickets will cost $150 to attend the eventBy SVG Staff Tuesday, Decemb...

09/12/2025

University of St. Thomas Ushers in Division I Era With New Arena and a Broadcast Operation Built for the Big Time

University of St. Thomas Ushers in Division I Era With New Arena and a Broadcast...

09/12/2025

Spotify Expands Music Videos in Beta to Premium Users in the US and Canada

For decades, music videos have done more than just accompany a song; they've shaped style, started conversations, and helped us fall in love with our favori...

09/12/2025

Leading the Charge: L3Harris' Advanced EW Technologies for Superior Battlefield Advantage

For decades, customers have turned to L3Harris capabilities in electronic warfar...

09/12/2025

L3Harris Propulsion Solutions: Securing the High Ground in Space

L3Harris propulsion systems enable agile maneuvering and resilience for U.S. spacecraft, supporting national security and mission success in the evolving space ...

09/12/2025

L3Harris Successfully Completes Critical Design Review of Key Components for Japan's New Geostationary Meteorological Satellite

L3Harris Technologies' imaging and sounding instruments will play a critical...

09/12/2025

James Shears Joins ThinkAnalytics as Senior VP, Advertising

LOS ANGELES James Shears has joined ThinkAnalytics as senior vice president, advertising, tasked with leading global strategy and commercial expansion of the co...

09/12/2025

Kathleen Kirby, Heidi Raphael Join Media Institute Board

VIENNA, Va. The Media Institute, a nonprofit, nonpartisan organization specializing in communications policy and the First Amendment, has named Kathleen Kirby o...

09/12/2025

Hollywood's Ecosystem for Combating Piracy

Throughout its century-plus existence, the motion picture industry has had to fight battles on multiple fronts to protect its content from piracy. From protecti...

09/12/2025

Football Shifts TV Viewing Towards Ad Supported Services

NEW YORK Fueled by football season, ad supported TV viewing in Q3 peaked in September, representing 74.7% of overall TV viewership in that month, per Nielsen...

09/12/2025

Digital Alert Systems Now Offers DC Power Option for DASDEC-III

LYNDONVILLE, N.Y. Digital Alert Systems has introduced the DAS3-DC-PS, a new DC power supply option for its DASDEC-III emergency alert system. Designed to meet ...

09/12/2025

Macky Beheshti Joins Advanced Systems Group as Director o...

Advanced Systems Group, LLC (ASG), a technology and services provider for media creatives and content owners, announced the appointment of Macky Beheshti as Dir...

09/12/2025

Device Solutions Inc and Triveni Digital Secure Patent fo...

Triveni Digital and Device Solutions Inc today announced that the United States Patent and Trademark Office granted them a new patent for their novel ATSC 3.0 r...

09/12/2025

ThinkAnalytics appoints James Shears as SVP of Advertisin...

ThinkAnalytics, the global leader in AI-powered data analytics for TV and streaming, today announced the appointment of James Shears as Senior Vice President of...

09/12/2025

Dot Group Partners with SingleStore to Deliver Real-Time...

European data management specialists appointed as SingleStore champion partner, bringing unified real-time transaction, vector and analytics capabilities to org...

09/12/2025

Broadcast Solutions creates new business to lead on workf...

Broadcast Solutions, the leading systems integration group, has launched a new business, aimed at providing consultancy and design services across the media ind...

09/12/2025

FCC Delays Implementation of Foreign Sponsorship Rules

WASHINGTON The Federal Communications Commission's Media Bureau has once again delayed implementation of sponsorship identification requirements for foreign...

09/12/2025

#GALSNGEAR Announces 2026 Leadership Retreats

WASHINGTON #GALSNGEAR has announced two major leadership retreats in early 2026 that the group said are designed to equip women in media, entertainment, and tec...

09/12/2025

Cox Media Group, Verizon Trade Barbs Over Possible Blackout

WASHINGTON With a Dec. 15 deadline looming for a new retransmission consent and carriage deal between Cox and Verizon, the two parties have started trading barb...

09/12/2025

Samba TV Secures New Funding of up to $60 Million

SAN FRANCISCO Samba TV has announced that it has secured new financing from Horizon Technology Finance Corporation, an affiliate of Monroe Capital, with an init...

09/12/2025

Survey: 75% of Cord-Cutters Ditched a Streaming Subscription in 2025

Many cord-cutters looking to reduce their monthly cable or satellite bills are also cutting back on streaming costs, according to new research from All About Co...

09/12/2025

Shure Takes Center Stage at CMAs, Latin Grammys

LAS VEGAS and NASHVILLE, Tenn. Shure technology played a critical role during the broadcast productions of the 59th Annual CMA Awards at the Bridgestone Arena i...

09/12/2025

Nixer to address AV market demands for speed visibility a...

Unveiling of new CV1, web-browser workflows and Milan roadmap for mission-critical AV environments Nixer Pro Audio will return to Integrated Systems Europe (IS...

09/12/2025

How to Prepare for Daylight Saving Time in WO Automation for Radio

Spring Forward Are you ready to spring forward? The following steps will automate your transition from Standard Time to Daylight Saving Time. Ensure all WO Aut...

09/12/2025

Judy Murray calls for PE to be a priority for all schools in Scotland to support girls develop leadership skills and engage in sports

Tuesday 9 December 2025 Judy Murray calls for PE to be a priority for all schoo...

09/12/2025

Kyocera and Rohde & Schwarz demonstrate OTA characterization of mmWave PAAM at CES 2026

Kyocera and Rohde & Schwarz demonstrate OTA characterization of mmWave PAAM at C...

09/12/2025

Riedel and Racing Electronics Announce Strategic Partnership to Revolutionize U.S. Motorsport Communications

Wuppertal December 9, 2025 Riedel and Racing Electronics Announce Strategic Pa...

09/12/2025

Verified: LinkedIn crosses 100M member milestone

Verified: LinkedIn crosses 100M member milestone From LinkedIn Published on Dec 9, 2025 Categories: Company News, Featured News LinkedIn Corporate Communi...

09/12/2025

Highlights of the Year 2025

Another year, another 12 months of amazing adventures. We are pleased to bring you our Highlights of the Year 2025. We've worked hard and played hard this...

09/12/2025

Redefining Remote Production Through Cloud-Connected Workflows

Original article published in TV Tech: https://www.tvtechnology.com/equipment/bmg-redefines-remote-production-through-cloud-connected-workflows When I started ...

09/12/2025

N-Series wireless mic system now available in the United States

DPA Microphones today announces the immediate availability of its new N-Series Digital Wireless Microphone System for customers throughout the U.S. In addition ...

09/12/2025

Building Confidence in Retail Media: A Q&A with WPP Media's Jason Wescott

Jason, before we get into the detail, what first got you involved in retail media standards? And how did you come to chair IAB Europe's Retail and Commerce ...

09/12/2025

She can dance, she can jive: Rose of Tralee Katelyn Cummins revealed as third contestant for Dancing with the Stars 2026

Current Rose of Tralee Katelyn Cummins has been revealed as the third contestant...

09/12/2025

December 08, 2025

An easier approach to recreate the powerful nerve-blocking molecule found in shellfish A Scripps Research-led study resolves the challenge of synthesizing saxit...

08/12/2025

SVG Summit 2025 Technology Exhibits Preview, Part 1

SVG Summit 2025 Technology Exhibits Preview, Part 1By SVG Staff Monday, December 8, 2025 - 6:56 am Print This Story | Subscribe Story Highlights The 2025...

08/12/2025

2025 Sports Broadcasting Hall of Fame: Bill Rasmussen, the Entrepreneur Who Dreamed Sports Into a New World

2025 Sports Broadcasting Hall of Fame: Bill Rasmussen, the Entrepreneur Who Drea...

08/12/2025

SVG Summit 2025 Preview: Live Production Innovation Workshop Goes Deep on ST 2110, MXL, AR/XR, and More

SVG Summit 2025 Preview: Live Production Innovation Workshop Goes Deep on ST 211...

08/12/2025

#GALSNGEAR Announces East, West Leadership Retreats for 2026

#GALSNGEAR Announces East, West Leadership Retreats for 2026By Ken Kerschbaumer Monday, December 8, 2025 - 9:10 am Print This Story | Subscribe Story High...

08/12/2025

MediaKind Acquiring Harmonic's Video Business to Create New Streaming-Video Heavyweight

MediaKind Acquiring Harmonic's Video Business to Create New Streaming-Video ...

08/12/2025

Platinum White Paper: Sony HDR/SDR Camera Shading Techniques for Live Production Applications

Platinum White Paper: Sony HDR/SDR Camera Shading Techniques for Live Production...

08/12/2025

SVG Sit-Down: NESN's Kenny Elcock and Harmonic's Jean Macher Talk Next-Gen Distribution for Live Sports

SVG Sit-Down: NESN's Kenny Elcock and Harmonic's Jean Macher Talk Next-G...

08/12/2025

Monsters Funday Football,' ESPN's Latest Live Animation Effort, Advances the Altcast Art Form Again

Monsters Funday Football,' ESPN's Latest Live Animation Effort, Advances...