Stencil Mapped Shadowing for Ray Tracing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current ray tracing technologies face challenges in load balancing, high processing costs due to acceleration structures, and excessive intersection tests, which hinder efficient rendering of large scenes and power consumption, especially in battery-powered devices.

Innovation Solution

The method employs a uniform grid of cells with stencil maps that cache relevant scene data locally, eliminating the need for acceleration structures and reducing intersection tests, allowing for efficient parallel processing and improved load balancing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If acceleration structures are used to speed up ray tracing, then rendering speed is improved, but processing cost and complexity increase

Engineering Contradiction:
Improverendering speedVSAvoidprocessing cost
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent extracts and eliminates the complex acceleration structure component from the ray tracing system. Instead of using traditional acceleration structures like BVH or KD-trees, the invention uses a simpler uniform grid-based approach with stencil buffers, removing the unnecessary complexity while maintaining rendering performance.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent employs inexpensive, simple data structures (uniform grids and stencil buffers) that can be quickly created and discarded each frame, replacing expensive, complex acceleration structures. These simple structures are regenerated every frame but provide sufficient performance for the application.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

2Loss of time

If acceleration structures are used to reduce intersection tests, then processing time is reduced, but construction and traversal costs increase

Engineering Contradiction:
Improveprocessing timeVSAvoidconstruction and traversal costs
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent removes the acceleration structure construction and traversal overhead by using a different approach: uniform grid division with stencil buffers that directly track occluding objects, eliminating the need for complex construction and traversal operations.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the fundamental parameter of spatial organization from hierarchical acceleration structures to uniform grid cells with stencil buffers. This parameter change transforms the approach from reducing intersection tests through complex traversal to reducing them through direct stencil-based occlusion detection.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If data is distributed across multiple processors, then parallel processing capability is improved, but load balancing becomes difficult

Engineering Contradiction:
Improveparallel processing capabilityVSAvoidload balancing
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the scene into uniform grid cells that can be independently processed by different processors. Each processor handles specific grid cells and their associated stencil buffers, creating naturally balanced work units that simplify load distribution across parallel processors.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses homogeneous uniform grid cells for spatial subdivision, ensuring that each processor receives similar computational work. This homogeneity in data structure and processing approach facilitates easier load balancing compared to heterogeneous scene graphs or variable-resolution spatial structures.

Inventive Principle:
Principle #33Homogeneity

Data Source

PatentUS9633467B2Stencil mapped shadowing system
Publication Date: 2017.04.25 SNAP INC
  • US9633467B2 patent drawing
  • US9633467B2 patent drawing
  • US9633467B2 patent drawing

AI summary

Aspects comprise shadowing system as part of ray tracing. It is based on uniform grid of cells, and on local stencils in cells. The acceleration structures are abandoned along with high traversal and construction costs of these structures. The amount of intersection tests is cut down. The stencils are generated in the preprocessing stage and utilized in runtime. The relevant part of scene data, critical for shadowing of all visible intersection points in a cell, is registered in the local stencil map, as a volumetric data. The runtime use of stencils allows a complete locality at each cell, enhanced utilization of processing resources and load balancing of parallel processing.