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

02/05/2026

Dalet Flex LTS Delivers Smarter Search, Faster Editing, and an AI-Ready Foundation for Modern Media

Dalet, a leading technology and service provider for media-rich organizations, t...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

18/04/2026

NAB 2026: MultiDyne begins shipping C16-AM-12G audio monitor for SDI and IP workflows

MultiDyne Video & Fiber Optic Systems has begun shipping the C16-AM-12G audio mo...

18/04/2026

NAB 2026: FOR-A America announces AI updates for IMPULSE platform and release of MixBoard and HVS-Q12 switchers

FOR-A America is set to detail AI functionality for its software-defined IMPULSE...

18/04/2026

NAB 2026: Cobalt Digital and SineSix Media integrate audio description technology for broadcast workflows

Cobalt Digital and SineSix Media have announced a partnership to integrate the v...

18/04/2026

NAB 2026: ATSC focuses on 3.0 broadcast standard implementation at NAB Show 2026

The ATSC, the broadcast standards association, is highlighting the status of the ATSC 3.0 internet protocol-based broadcast standard at the 2026 NAB Show. The e...

18/04/2026

NAB 2026: Bolin Technology introduces Range PTZR camera, R9-L420N PTZ, and KBD Plus controller

Bolin Technology has introduced a new range of hardware for live production envi...

18/04/2026

NAB 2026: KMH Integration showcases AV Casting workflow approach and new technology at NAB 2026

KMH Integration is participating in the 2026 NAB Show, focusing on its AV Casti...

18/04/2026

NAB 2026: Appear appoints Mike Burk as vice president of business development

Appear has appointed Mike Burk as vice president of business development for North America. Burk brings over two decades of experience in the broadcast and live...

18/04/2026

NAB 2026: Skyline Communications demonstrates DataMiner platform and AI capabilities at NAB Show

Skyline Communications is showcasing its DataMiner platform and the new DataMine...

18/04/2026

NAB 2026: Telos Alliance unveils new broadcast audio hardware and software at NAB Show

Telos Alliance is exhibiting its portfolio of broadcast audio products at the 20...

18/04/2026

NAB 2026: TAG Video Systems adds real-time monitoring to AWS Elemental MediaConnect Router

TAG Video Systems has announced an integration with the AWS Elemental MediaConne...

18/04/2026

NAB 2026: Blackmagic Design Announces DaVinci Resolve 21

Blackmagic Design has announced DaVinci Resolve 21, with a public beta available now for download. The update will be demonstrated at NAB Show 2026 (Booth N2502...

18/04/2026

NAB 2026: Calrec and Grass Valley Announce Audio Technology Partnership

Calrec (Booth C6907) and Grass Valley (Booth C2408) have announced a long-term broadcast audio technology partnership at NAB Show 2026, integrating Calrec's...

18/04/2026

Blackmagic Design introduce Fairlight Live

Free software mixer now in public beta Blackmagic Design are best known for their high-end video hardware and DaVinci Resolve editing software, but the latt...

18/04/2026

The Gauge: Poland | March 2026

The first signs of spring in March led to Poles spending significantly less time in front of their screens, leading to a sharp 22-minute drop in average viewing...

18/04/2026

MediaKind Showcases Multiview Deployments at 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

18/04/2026

Clear-Com Unveils FreeSpeak Cell- A Breakthrough Cellular...

Clear-Com announced FreeSpeak Cell , a cellular-based wireless intercom system that uses LTE and 5G infrastructure to support large-scale production communicat...

18/04/2026

ATSC Offers Free ATSC 3.0 Guide to 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

18/04/2026

Telos Alliance Introduces Four New Products at the 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

18/04/2026

AEQ to Showcase Forum IP Plus and Systel Max at 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

18/04/2026

Nexstar to Appeal Preliminary Injunction Blocking Tegna Deal

Share Copy link Facebook X Linkedin Bluesky Email...

18/04/2026

TAG Video Systems Brings Realtime Monitoring to AWS Eleme...

New York, NY, April 17, 2026 -- TAG Video Systems has announced an integration with Amazon Web Services (AWS) Elemental MediaConnect Router. The integration bri...

18/04/2026

Pro Sound Effects Launches the First and Only Native Soun...

Pro Sound Effects (PSE), the leading provider of professionally recorded sound effects for film, television, advertising, and technology today announced the lau...

18/04/2026

Fincons Group Achieves AWS Media and Entertainment Compet...

Fincons Group, a multinational IT business consulting and system integrator firm, announced today that it has achieved Amazon Web Services (AWS) Media & Enterta...

18/04/2026

Adobe extends leadership in video: unleashing new AI-powered creation in Firefly, reinventing color for editors in Premiere

Adobe extends leadership in video: unleashing new AI-powered creation in Firefly...

17/04/2026

World Fencing League Announces DAZN as Global Streaming Partner Ahead of April 25 Debut

The World Fencing League (WFL) has announced DAZN as its primary global streamin...

17/04/2026

NAB 2026: ARRI Releases ALEXA 35 SUP 6.0 and LPS-1 SUP 1.3 Software Updates

ARRI Releases ALEXA 35 SUP 6.0 and LPS-1 SUP 1.3 Software Updates ARRI has announced software updates for its ALEXA 35 Live camera and Live Production System L...

17/04/2026

NAB 2026: Sennheiser Announces Spectera Studio System Planner for Spectera Wireless Ecosystem

Sennheiser has announced Spectera Studio, an offline system planner for its Spec...

17/04/2026

Deltatre and DFB Announce DFB.TV+ Streaming Service, Launching May 22

Deltatre and the German Football Association (DFB) have announced DFB.TV+, a DFB-owned direct-to-consumer streaming service developed and operated by Deltatre. ...

17/04/2026

IMG announces senior leadership roles for next phase of growth

Global sports marketing agency IMG has announced new senior leadership roles, designed to strengthen how it supports rightsholders and partners in the midst of ...

17/04/2026

NAB 2026: NAGRAVISION and Harmonic Launch Watermarking-as-a-Service for Live Event Streaming

NAGRAVISION and Harmonic have announced a watermarking-as-a-service solution for...

17/04/2026

NAB 2026: NETGEAR and EVS Announce Technology Partnership for AV-over-IP Live Production

NETGEAR and EVS Broadcast Equipment have announced a global technology partnersh...

17/04/2026

NAB 2026: Americas Broadcasters Launch NEXTGEN TV Converter Box Program

America's broadcasters are launching the NEXTGEN TV Converter Box Program, a new initiative designed to provide millions of American viewers with a low-cost...

17/04/2026

NAB 2026: Quantum to Showcase Tape-Anchored Storage Workflows, Responds to Industry Supply Chain and Power Disruption

Quantum Corp. will exhibit at NAB Show 2026 (Booth N1726), presenting what it ca...

17/04/2026

SVG Marks 20th Anniversary with Plan to Set Course for the Future

Leadership and Staff Announce '20/20 Vision' Playbook...

17/04/2026

TNT Sports Acquires U.S. Broadcast Rights to FIA World Endurance Championship

TNT Sports has announced a multi-year agreement for U.S. media rights to the FIA World Endurance Championship (WEC). Three events will air on truTV - the 24 Hou...

17/04/2026

Scripps Sports and PBR Announce Multi-Year Broadcast Partnership for Premier Womens Rodeo

Scripps Sports has announced a multi-year broadcast partnership with PBR (Profes...

17/04/2026

NAB 2026: Adder Technology Releases AIM 6 IP KVM Matrix Management Software

Adder Technology, a specialist in connectivity solutions and high performance IP KVM, today announced the latest release of AIM, its IP KVM matrix management so...

17/04/2026

Victory+ and Dallas Cowboys Announce Multi-Year Content Streaming Partnership

Victory , a free sports streaming platform from A Parent Media Co. Inc. (APMC), has announced a multi-year content distribution partnership with the Dallas Cowb...

17/04/2026

SVG GameDay, Ep. 11: Philadelphia Phillies Arianna Krizek - Baseball at the Bank

In-venue and creative video staffers at the professional and collegiate level have one major thing in common: the intensity and attention to detail ramps up dur...

17/04/2026

Quickplay Deploys Gray Medias New Streaming Platform - Powered by Google Cloud AI - Across 113 Markets

Quickplay has announced the full-scale deployment of Gray Media's streaming ...

17/04/2026

NAB 2026: Clear-Com's New FreeSpeak Cell Addresses Spectrum Congestion

Clear-Com has introduced the FreeSpeak Cell cellular-based wireless intercom system that uses LTE and 5G infrastructure to support large-scale production commun...

17/04/2026

2026 NAB Show Opens Tomorrow, Bringing Industry Together in Vegas

The 2026 NAB Show kicks off Saturday, April 18, with the show floor and exhibits opening April 19-22 at the Las Vegas Convention Center. The show features more ...

17/04/2026

Ratings Roundup: CBS Tees Up Best Masters Since 2015; NBA Sees Big Regular Season Increases

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

17/04/2026

Nuvo Flight mic kit from AEA

Versatile ribbon mic kit revealed The latest arrival to the AEA line-up brings together three contrasting models from their Nuvo range, delivering a versati...