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

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

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

24/02/2026

TNDV Supports Passion Conference 2026 with Cinematic Live Production Workflow

TNDV, a division of Live Media Group, delivered broadcast and live event product services for Passion 2026, marking the company's 17th year supporting the a...

24/02/2026

Seattle Kraken, TEGNA Announce Multi-Year TV Extension

Ryan Schaber has had a front row seat to both the dynamics behind the Kraken's now-extended broadcast affiliation with TEGNA and its impact on the broader s...

24/02/2026

Whoopi Goldberg's All Women's Sports Network Debuts Live Boxing

All Women's Sports Network (AWSN) announces the debut of women's professional boxing on its fast-growing television platform in partnership with Hall of...

24/02/2026

NFL and StatusPRO Expand Partnership with New Rights, Renewed Gaming License

The NFL and StatusPRO, a sports entertainment and technology company that combines AI and performance data with emerging technology to create experiential conte...

24/02/2026

Pro League Network Expands to 24/7 Programming with Connected TV Channel on Prime Video and LG

Pro League Network (PLN), a next-generation sports media and entertainment compa...

24/02/2026

Sportel Asia Set to Bring World Together

Sportel Asia returns to Singapore for the first time since 2018 on March 24-25 and Agn s Marsan, Executive Director of SPORTEL Asia, says the return to Singapor...

24/02/2026

Join ARRI's Webinar: Sports Cinematographer Domenick Satterberg's Game Day Playbook for Sports Shooters

Join ARRI for a conversation and Q&A with Sports Cinematographer Domenick Satter...

24/02/2026

U.S. Soccer Extends Agreement with Veritone to Monetize Archive Footage Using AI-Powered Content Licensing

Veritone, Inc announces a renewal of its agreement with U.S. Soccer to license a...

24/02/2026

SVG in Indy: NCAA's Natalie Steger on Producing Championship Broadcasts, Embracing Technology

Commitment to innovation at network, conference, and institutional levels have i...

24/02/2026

Braves To Launch New BravesVision' Regional Sports Network

The new RSN, which will produce 140+ games a year, arrives after the Braves exited Main Street Sports and FanDuel Sports Network earlier this month....

24/02/2026

2027 Sundance Film Festival To Take Place January 21-31 in Boulder, Colorado

Official Venues Unveiled for Festival's Milestone Colorado Debut in 2027...

24/02/2026

Spotify and Liquid Death Bring Music to the Afterlife With the Eternal Playlist Urn and Playlist Generator

Life needs music. So does the afterlife. That's why Spotify has partnered wi...

24/02/2026

Fans Enter Bad Bunny's Universe at Spotify's Immersive Experience in So Paulo

Last weekend, S o Paulo buzzed with energy as Bad Bunny took the stage for two n...

24/02/2026

Clear-Com's Arcadia Central Station and FreeSpeak Icon Beltpacks Keep Red Bull's...

eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...

24/02/2026

Disney Scores Best Performance in a Year in Nielsen's January 2026 Media Distributor Gauge

Disney Captures 11.9% of TV in January, Boosted by ESPN's ( 82%) College Foo...

24/02/2026

Griffin Media modernizes its newsroom operations with Bit...

Bitcentral, the leading provider of professional media solutions for broadcast and digital video, today announced that Griffin Media, an Oklahoma-based multimed...

24/02/2026

Intinor Appoints Ideal Systems as Authorized Reseller in...

Intinor announces the appointment of Ideal Systems as an authorized reseller, covering Singapore, Malaysia and Indonesia, and strengthening local access to resi...

24/02/2026

Dagens Industri moves to new base with nxtedition

Di TV implements its own nxtedition platform for continuity Dagens Industri, the popular Swedish financial publisher, has moved to a new base in the Nasdaq bu...

24/02/2026

Appear X Platform now SRT Verified for YouTube Live conte...

Appear, a global leader in live production technology, today announced that its X Platform has been officially verified by YouTube for Secure Reliable Transport...

24/02/2026

Telycam PTZ Cameras Support Production of U.S. Curling Trials

Share Copy link Facebook X Linkedin Bluesky Email...

24/02/2026

FCC Approves Transfers of Three Station Licenses to Sinclair

Share Copy link Facebook X Linkedin Bluesky Email...

24/02/2026

Women's Hockey Final Pulls in a Record 5.3 Million Viewers

Share Copy link Facebook X Linkedin Bluesky Email...

24/02/2026

The Gotham Sports App Revamps Options, Pricing

Share Copy link Facebook X Linkedin Bluesky Email...

24/02/2026

COBALT ARIA AUD-MON Receives Best of Show Awards at ISE 2...

Cobalt Digital, the leading designer and manufacturer of award-winning ST 2110 and SDI signal processing products, and a founding partner in the openGear initi...

24/02/2026

Paul C. Brunson to front second series of true crime docu-series Red Flag for U and U&W

Paul C. Brunson: Red Flag to be produced by FirstLookTV and launch in 2026 UKTV...

24/02/2026

dB at MPTS 2026

This year, we're back at the Media Production and Technology Show (MPTS) in London. As always, we're looking forward to catching up with existing contac...

24/02/2026

dB Makes Further Key Appointments

We are pleased to announce that Pete Whiteway is joining the dB Technology Group as a Senior Systems Engineer. Pete brings over 20 years of experience in broadc...

24/02/2026

End-to-End Transparency in the Supply Chain You Can Touch

End-to-End Transparency in the Supply Chain You Can Touch The team at LogiMAT 2025 - from left: Michael Dreimann, Andr Haff, Nicolas Lapp, Bernd Jaschinski-...

24/02/2026

RT Commercial announces expansion of Partnerships Team to accelerate crossplatform brand opportunities

Katharine Wolinska appointed to lead Partnerships RT Commercial has announced ...

24/02/2026

From Radiology to Drug Discovery, Survey Reveals AI Is Delivering Clear Return on Investment in Healthcare

AI is accelerating every aspect of healthcare - from radiology and drug discover...

23/02/2026

Dignity Health Sports Park Improves Fan Engagement Through Daktronics LED Display, Control System Upgrade

Dignity Health Sports Park, a multi-use sports complex in Carson, Calif., and Da...

23/02/2026

Gotham Sports Cuts Prices for Streaming Packages

The Gotham Sports App, the exclusive direct-to-consumer streaming home of MSG Networks and the YES Network, is introducing more choice and value with new packag...

23/02/2026

Cobalt ARIA AUD-MON Receives Best of Show Awards at ISE 2026

Cobalt Digital, a designer and manufacturer of ST 2110 and SDI signal processing products, and a founding partner in the openGear initiative, announces that its...

23/02/2026

Telos Alliance Releases Nielsen Watermark Encoder Update for Linear Acoustic AERO TV Processors

Telos Alliance, which has specialized in broadcast audio for more than three dec...

23/02/2026

3 Prompts to Try Using Prompted Playlist, Expanding in Beta to the UK, Ireland, Australia, and Sweden

Prompted Playlist is expanding in beta to Premium listeners in the U.K., Ireland...

23/02/2026

5 Years in Nigeria: A Look Back at How Listeners Are Championing Homegrown Sounds

When Spotify launched in Nigeria in February 2021, the very first song a user st...

23/02/2026

L3Harris Advances Powder-in, Engine-out Hypersonic Propulsion Manufacturing

L3Harris hypersonics concept illustration....

23/02/2026

L3Harris Celebrates Engineers Week 2026

By combining their innovative spirit and technical expertise, L3Harris engineers are solving our customers most urgent challenges and shaping a better tomorrow....

23/02/2026

aconnic to showcase cybersecurity and digital sovereignty solutions at Mobile World Congress 2026 in Barcelona

aconnic AG (ISIN: DE000A0LBKW6), Munich, will present its latest cybersecurity, ...

23/02/2026

Broadcasters Foundation of America Announces 2026 Honorees

Share Copy link Facebook X Linkedin Bluesky Email...

23/02/2026

DirecTV Adds Apple TV's Formula 1 Racing

Share Copy link Facebook X Linkedin Bluesky Email...

23/02/2026

X-Rite Pantone Launches Event Series to Modernize Textile Color Workflows

X-Rite Pantone Launches Event Series to Modernize Textile Color Workflows X-Rite Pantone, the global authority in color standards and color science, today a...

23/02/2026

Netflix Greenlights New Romcom Film Messily Ever After' (WT), A Decade-Long Relationship on a Wild Emotional Ride

Back to All News Netflix Greenlights New Romcom Film Messily Ever After' (...

23/02/2026

Netflix Announces 1 Million Donation To National Film And Television School

Back to All News Netflix Announces £1 Million Donation To National Film And Television School Social Impact 23 February 2026 GlobalUnited Kingdom Link copi...