Cascade Shadow Maps for Resolution and Load Trade-offs

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing shadow mapping techniques in computer graphics face challenges with resolution issues, leading to oversampling or undersampling, which affects rendering speed and resource utilization, particularly when dealing with complex scenes requiring varying levels of detail for shadow rendering.

Innovation Solution

The implementation of cascade shadow maps and deferred shadow maps, along with tiling and depth-based optimization techniques, allows for dynamic adjustment of shadow map sizes and sampling strategies to improve the texel-to-pixel ratio and reduce unnecessary sampling, enabling efficient rendering of shadows with high resolution and reduced aliasing artifacts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If a single shadow map is used to cover the entire scene, then the device complexity is reduced, but the manufacturing precision of shadows deteriorates due to oversampling or undersampling issues

Engineering Contradiction:
Improveshadow mapping systemVSAvoidshadow resolution
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The patent divides the scene into multiple depth ranges (cascades) and creates a separate shadow map for each cascade. This segmentation allows each shadow map to focus on a specific depth range, providing high resolution where needed without the complexity of a single oversized shadow map. The scene is split into near, mid, and far cascades, each with its own optimized shadow map.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Different regions of the scene receive different levels of shadow detail based on their importance and depth. The patent applies higher resolution shadow maps to near objects (first cascade) and progressively lower resolution to distant objects (subsequent cascades). This local quality adjustment ensures critical areas have sharp shadows while distant areas use fewer resources.

Inventive Principle:
Principle #3Local quality

2Manufacturing precision

If high resolution shadow maps are used throughout the scene, then the shadow rendering precision is improved, but the use of energy and computational resources increases significantly

Engineering Contradiction:
Improveshadow rendering precisionVSAvoidcomputational resources
Core Design Contradiction:
Manufacturing precisionVSUse of energy by moving object

Solution Approach 1:

The patent dynamically adjusts shadow map resolution based on depth distance. Each cascade is assigned an appropriate resolution level according to its depth range and visual importance. The system automatically transitions between different resolution levels as objects move through different depth ranges, optimizing resource usage while maintaining perceived quality.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent applies high-resolution shadow rendering only to the most visually important regions (near objects in the first cascade) while using lower resolution for distant objects. This partial application of high quality rendering focuses computational resources where they provide the most visual benefit, avoiding the waste of applying maximum resolution throughout the entire scene.

Inventive Principle:
Principle #16Partial or excessive action

3Manufacturing precision

If multiple shadow maps are used to cover different depth ranges, then the shadow rendering precision is improved, but the device complexity increases

Engineering Contradiction:
Improveshadow resolutionVSAvoidshadow mapping system
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent segments the shadow mapping system into discrete cascades, each handling a specific depth range. This segmentation creates manageable units that can be independently configured and rendered. The segmentation approach simplifies the overall system by breaking down the complex task of full-scene shadow mapping into smaller, more manageable depth-based sections.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a depth-based dimensional organization for shadow maps. Instead of a single 2D shadow map covering all space, the system creates multiple 2D shadow maps organized along the depth dimension (Z-axis). This dimensional organization allows the system to manage complexity by adding structure through depth-based stratification.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

4Ease of operation

If uniform sampling is applied across the entire shadow map, then the ease of operation is maintained, but the manufacturing precision deteriorates due to aliasing artifacts

Engineering Contradiction:
Improveshadow mapping processVSAvoidshadow quality
Core Design Contradiction:
Ease of operationVSManufacturing precision

Solution Approach 1:

The patent applies different sampling densities to different cascades based on their visual importance. The first cascade (near objects) uses higher sampling density to avoid aliasing, while subsequent cascades (distant objects) use lower sampling density. This local quality adjustment maintains operational simplicity while significantly improving shadow quality in critical regions.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS8325186B2Method and apparatus for rendering shadows
Publication Date: 2012.12.04 SONY INTERACTIVE ENTERTAINMENT LLC
  • US8325186B2 patent drawing
  • US8325186B2 patent drawing
  • US8325186B2 patent drawing

AI summary

A method including identifying a set of shadow casters and a set of shadow receivers in a frame of a scene lighted by at least a first light source, constructing a first 3D grid from the first light source's point of view fully enclosing a first volume of the scene, projecting each of the one or more shadow casters and growing each cell of the first 3D grid that includes one or more projected casters. Constructing a second 3D grid from the first light source's point of view fully enclosing the first volume and growing each cell of the second 3D grid that includes at least a portion of one or more shadow receivers and for which a corresponding cell of the first 3D grid has been grown. Forming a third 3D grid by intersecting the first 3D grid with the second 3D grid and marking for rendering into a shadow map each shadow caster that intersects the third 3D grid.