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

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

06/09/2026

Dolby and MagentaTV Bring Fans Closer to the FIFA World Cup 2026 in Germany with Dolby Vision and Dolby Atmos

June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...

05/09/2026

HEDD Audio update CTRL software

MK2 & Bass system control app improved HEDD Audio have just launched a new and improved version of the control software that pairs with their MK2 and Bass m...

05/09/2026

CALL FOR ENTRIES IS NOW OPEN FOR THE 20TH ANNUAL SOUTH AFRICAN FILM & TELEVISION AWARDS (SAFTAs20) EXTENDED

The National Film and Video Foundation (NFVF), an agency of the Department of Sp...

05/09/2026

Orlando Magic, Gray Media Ink Ful-Season Broadcast Deal

Share Copy link Facebook X Linkedin Bluesky Email...

05/09/2026

YouTube TV Adds ESPN Unlimited

Share Copy link Facebook X Linkedin Bluesky Email...

05/09/2026

InSync Brings Conversion Workflow Flexibility to IBC 2026

InSync Technology, the leading provider of premium video conversion solutions, will showcase a new generation of products at IBC 2026, designed to help broadcas...

05/09/2026

GlobalM supports quattro media and World Rowing with Glob...

GlobalM successfully supported quattro media GmbH and World Rowing, the world governing body of the Olympic sport of Rowing, with the international distribution...

05/09/2026

Scripps Research professor Chi-Huey Wong to receive ACS Alfred Bader Award

LA JOLLA, CA-In recognition of his exceptional work to understand the chemistry of carbohydrates and the role they play in health and disease, Scripps Family Ch...

04/09/2026

Business Innovation Synergizer FAQ: What applicants need to know

Media organisations interested in the Media Innovation Europe 3.0 Business Innovation Synergizer (BIS) can now consult a new FAQ document providing additional a...

04/09/2026

IBC 2026: Eluvio Showcases Global Broadcast Fabric Updates

Eluvio will demonstrate updates to its Content Fabric platform at IBC2026 (Hall 8, Stand 8.MS5, and Future Tech Zone, Hall 14, Stand 14.A58, September 11-14). C...

04/09/2026

IBC 2026: LiveU Joins IBC Accelerator Smart Stories Consortium

LiveU has joined the IBC Accelerator's Smart Stories consortium, a multi-vendor initiative developing an open standard for Story Context interoperability in...

04/09/2026

IBC 2026: Telos Alliance to Demonstrate Audio Observability Capabilities

Telos Alliance will demonstrate new audio observability capabilities at IBC2026 (Stand 8.D37, RAI Amsterdam, September 11-14), covering monitoring of audio heal...

04/09/2026

World Team Tennis Announces Broadcast Partnership with Versants USA Sports

World Team Tennis (WTT) has announced a broadcast partnership with USA Sports, the sports division of Versant. USA Sports will air all six of WTT's live mat...

04/09/2026

Gravity Media Appoints Alex Pannell as Chief Business Officer

Gravity Media has appointed Alex Pannell as Chief Business Officer. Pannell joins from Appear, where he served as Chief Commercial Officer. He will be based in ...

04/09/2026

IBC 2026: Dalet Expands Dalia AI Platform with Agentic Workflow Capabilities

Dalet has announced new agentic workflow capabilities for Dalia, its AI platform for media organizations, ahead of IBC2026. The updates extend Dalia from an AI ...

04/09/2026

IBC 2026: L-Acoustics Achieves EN 54 Certification Across Loudspeaker and Amplifier Portfolio

L-Acoustics has achieved EN 54 certification across a portfolio of loudspeakers,...

04/09/2026

IBC 2026: EVS and Matrox Video Announce Technology Partnership for Dynamic Media Facility Deployments

EVS and Matrox Video have announced a technology partnership integrating Matrox ...

04/09/2026

IBC 2026: NEP to Showcase Software-Defined Live Production

NEP Group will exhibit at IBC2026 (Hall 7, Stand 7.B55, RAI Amsterdam, September 11-14), demonstrating software-defined production capabilities across NEP Platf...

04/09/2026

FoMaSystems and ARRI Honored with Engineering Emmy for ARRI TRINITY 2

The Television Academy has awarded an Engineering Emmy to Dr. Roman Foltyn, Chief Engineer of FoMaSystems, and Curt O. Schaller for the development of the ARRI ...

04/09/2026

IBC 2026: InSync Technology to Showcase Frame Rate and Standards Conversion

InSync Technology will exhibit at IBC2026 (Stand 1.A55, RAI Amsterdam, September 11-14), demonstrating its FrameFormer and NOVA conversion platforms for frame r...

04/09/2026

Professional Triathletes Organization Signs Agreement with Sela to Host Events in Saudi Arabia

The Professional Triathletes Organisation (PTO) has signed a multi-year agreemen...

04/09/2026

IBC 2026: Accedo and MediaKind Launch Joint Streaming Solution for Operators

Accedo and MediaKind have announced a white-label, end-to-end streaming solution for operators, combining Accedo's native application framework and cloud-ba...

04/09/2026

IBC 2026: TAG Video Systems Launches TAG Blue Cloud Monitoring Platform

TAG Video Systems has announced TAG Blue, a cloud platform for shared monitoring visibility across video delivery chains, with AI-powered root-cause analysis. T...

04/09/2026

IBC 2026: TwelveLabs Launches Video Compliance Platform with NVIDIA Deepfake Detection

TwelveLabs has launched a video compliance platform for media organizations, inc...

04/09/2026

Television Academy and NATAS Announce 2026 Engineering, Science & Technology Emmy Award Recipients

The Television Academy and the National Academy of Television Arts & Sciences ha...

04/09/2026

KeySolutions Sounds release Traveler

Powerful new soft synth announced Traveler is the first software instrument to be released by KeySolutions Sounds, and it's an ambitious one! Said to co...

04/09/2026

e-instruments launch Velvet Guitars Fragment

Free virtual instrument range expanded The latest expansion of e-instruments' free Fragments series introduces a packed-down version of the company'...

04/09/2026

Accentize Chameleon wins Emmy Award

Company recognised for second time Two years after winning an Engineering, Science & Technology Emmy Award for dxRevive Pro, Accentize have been recognised ...

04/09/2026

AgileTV and Friend MTS Complete CDN Watermarking Integration to Fast-Track Anti-Piracy Protection for Operators

Bilbao - 3rd September 2026 -AgileTV, a leading provider of end-to-end TV and vi...

04/09/2026

Net Insight to Launch Nimbra 1020G at 2026 IBC Show

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

Disney, Optimum Renew Carriage Deal

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

ACEMAGIC First to Introduce Ryzen AI Max+ PRO 495 AI Mini Workstation at IFA 2026

ACEMAGIC First to Introduce Ryzen AI Max PRO 495 AI Mini Workstation at IFA 202...

04/09/2026

Krotos Brings Video to Sound Footsteps Directly into Premiere Pro and DaVinci Resolve

Krotos Brings Video to Sound Footsteps Directly into Premiere Pro and DaVinci Re...

04/09/2026

RED DIGITAL CINEMA Comes Out Swinging at IBC 2026 with Next-Generation Live Broadcast Technology

RED DIGITAL CINEMA Comes Out Swinging at IBC 2026 with Next-Generation Live Broa...

04/09/2026

Orty v2.0-web - the cold-outreach assistant moves to the web

Orty v2.0-web - the cold-outreach assistant moves to the web Brie Clayton September 4, 2026 0 Comments Orty today announced v2.0-web of its AI cold-ou...

04/09/2026

Lightware expands LARA capabilities with new GUDE driver

Lightware is expanding its LARA (Lightware Advanced Room Automation) platform with the GUDE Power Distribution Units (PDU) driver module. GUDE devices can now b...

04/09/2026

People Behind the Technology - How Lightware Invests in W...

Lightware shares the second release in its ESG communications series. Following the first piece, which focused on the companys environmental performance, this r...

04/09/2026

Big Blue Marble delivers record 10 Tbps for European publ...

Big Blue Marble supported a leading European public service broadcaster in delivering the Soccer World Cup 2026 streams, supplying more than 10 Tbps of bandwidt...

04/09/2026

Hitomi MatchBox Glass is honoured with Emmy Award

Outstanding achievement in engineering, science and technology Hitomi Broadcast has been recognised with an Engineering, Science & Technology Emmy from the Ac...

04/09/2026

California, Hollywood at a Crossroads

California, Hollywood at a Crossroads Andy Marken September 3, 2026 0 Comments I'm doing everything alone. Crossing roads alone. Seeing the Eiffe...

04/09/2026

Berklee Announces Winners of 2026 SongwritersdB Songwriting Contest

Berklee Announces Winners of 2026 SongwritersdB Songwriting Contest Students Luca Alexandru, Annika Wild, and Johanna James received the top prizes for origin...

04/09/2026

EVS, Matrox Partner on EBUs Dynamic Media Facility Initiative

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

TAG Video Systems Unveils TAG Blue

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

Orlando Magic and Gray Media Ink Full Season Broadcast Deal

Share Copy link Facebook X Linkedin Bluesky Email...

04/09/2026

RT ANNOUNCE NEW DRAMA THE MURDER OF MR. MOONLIGHT BASED ON THE DISAPPEARANCE AND MURDER OF BOBBY RYAN

RT ANNOUNCE NEW DRAMA THE MURDER OF MR. MOONLIGHT BASED ON THE DISAPPEARANCE...

03/09/2026

Yospace releases new Ad Presentation solution, unlocking revenue opportunities with non-linear ad formats

Yospace will be at IBC from 11th - 14th September (booth 5.C78). For more inform...

03/09/2026

Creative Technology Group Announces Leadership Transition Effective January 2027

NEP Group has announced leadership changes at Creative Technology Group. Founder and CEO Graham Andrews will step away from day-to-day leadership at the end of ...

03/09/2026

NFL and TikTok Renew Multi-Year Partnership

The NFL and TikTok have announced a multi-year partnership renewal expanding the league's presence on the platform. NFL posts on TikTok increased more than ...