# US 2021/0174572 A1 · Hybrid hierarchy of bounding and grid structures for ray tracing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0174572 A1
- Document ID: US20210174572A1
- Status: Published application
- Kind: A1
- Application number: 17/181,287
- Filed: 2021-02-22
- Published: 2021-06-10
- Earliest claimed: 2017-07-13
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Gregory Clark; John W. Howson; Justin DeCell; Steven J. Clohset
- Web page: https://patentgrep.com/patent/US20210174572A1

## CPC

- G06T 15/06: Ray-tracing
- G06F 30/327: Logic synthesis; Behaviour synthesis, e.g. mapping logic, HDL to netlist, high-level language to RTL or netlist
- G06T 17/005: {Tree description, e.g. octree, quadtree}
- G06T 2210/12: Bounding box
- G06T 2210/21: Collision detection, intersection
- G06T 2210/52: Parallel processing
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and ray tracing units are provided for performing intersection testing for use in rendering an image of a 3-D scene. A hierarchical acceleration structure may be traversed by traversing one or more upper levels of nodes of the hierarchical acceleration structure according to a first traversal technique, the first traversal technique being a depth-first traversal technique; and traversing one or more lower levels of nodes of the hierarchical acceleration structure according to a second traversal technique, the second traversal technique not being a depth-first traversal technique. Results of traversing the hierarchical acceleration structure are used for rendering the image of the 3-D scene. The upper levels of the acceleration structure may be defined according to a spatial subdivision structure, whereas the lower levels of the acceleration structure may be defined according to a bounding volume structure.

## Claims

### Claim 1

A computer-implemented method of rendering an image of a scene using a ray tracing system, the method comprising:
determining nodes of a hierarchical acceleration structure, wherein each node of one or more upper levels of the hierarchical acceleration structure has a spatial subdivision structure which is different from a bounding volume structure of each node of one or more lower levels of the hierarchical acceleration structure; and
using the hierarchical acceleration structure, as part of rendering an image of the scene.

### Claim 2 (depends on 1)

The method of claim 1, wherein the method further comprises:
receiving primitive data for primitives located in the scene, wherein the nodes of the hierarchical acceleration structure are determined based on the received primitive data; and
storing the hierarchical acceleration structure for use in intersection testing.

### Claim 3 (depends on 2)

The method of claim 2, wherein said determining nodes of the hierarchical acceleration structure comprises identifying which primitives are present within volumetric elements within the scene.

### Claim 4 (depends on 1)

The method of claim 1, wherein the nodes of the hierarchical acceleration structure represent volumetric elements within the scene, wherein primitive indications are stored for leaf nodes of the hierarchical acceleration structure to indicate primitives which are present within the volumetric elements corresponding to the respective leaf nodes.

### Claim 5 (depends on 1)

The method of claim 1, wherein said one or more upper levels of nodes are at the top of the hierarchical acceleration structure, and wherein said one or more lower levels of nodes are below said one or more upper levels in the hierarchical acceleration structure.

### Claim 6 (depends on 1)

The method of claim 1, wherein the one or more lower levels of nodes represent multiple sub-hierarchies within the hierarchical acceleration structure, and wherein the root nodes of the sub-hierarchies are represented as leaf nodes within the one or more upper levels of the hierarchical acceleration structure.

### Claim 7 (depends on 1)

The method of claim 1, wherein the spatial subdivision structure is: (i) a grid structure, (ii) a multi-level grid structure, (iii) an octree structure, or (iv) a space partitioning structure.

### Claim 8 (depends on 1)

The method of claim 1, wherein the bounding volume structure is defined with reference to an octree structure.

### Claim 9 (depends on 1)

The method of claim 1, wherein said using the hierarchical acceleration structure, as part of rendering an image of the scene comprises performing intersection testing, wherein the intersection testing traverses the hierarchical acceleration structure by:
traversing the one or more upper levels of nodes of the hierarchical acceleration structure according to a first traversal technique, said first traversal technique being a depth-first traversal technique; and
traversing the one or more lower levels of nodes of the hierarchical acceleration structure according to a second traversal technique, said second traversal technique not being a depth-first traversal technique.

### Claim 10 (depends on 9)

The method of claim 9, wherein the second traversal technique is based on a breadth-first traversal technique.

### Claim 11

A ray tracing unit comprising a processing module configured to render an image of a scene, the processing module comprising:
acceleration structure building logic configured to determine nodes of the hierarchical acceleration structure, wherein each node of one or more upper levels of the hierarchical acceleration structure has a spatial subdivision structure which is different from a bounding volume structure of each node of one or more lower levels of the hierarchical acceleration structure; and
wherein the processing module is configured to cause the hierarchical acceleration structure to be stored for use in intersection testing as part of rendering an image of the scene.

### Claim 12 (depends on 11)

The ray tracing unit of claim 11, wherein the processing module further comprises an input configured to receive primitive data for primitives located in the scene, and wherein the acceleration structure building logic is configured to determine nodes of the hierarchical acceleration structure based on the received primitive data.

### Claim 13 (depends on 12)

The ray tracing unit of claim 12, wherein the acceleration structure building logic is configured to identify which primitives are present within volumetric elements within the scene.

### Claim 14 (depends on 11)

The ray tracing unit of claim 11, wherein the nodes of the hierarchical acceleration structure represent volumetric elements within the scene, wherein the acceleration structure building logic is configured to determine primitive indications for leaf nodes of the hierarchical acceleration structure to indicate primitives which are present within the volumetric elements corresponding to the respective leaf nodes.

### Claim 15 (depends on 11)

The ray tracing unit of claim 11, wherein the one or more lower levels of nodes represent multiple sub-hierarchies within the hierarchical acceleration structure, and wherein the root nodes of the sub-hierarchies are represented as leaf nodes within the one or more upper levels of the hierarchical acceleration structure.

### Claim 16 (depends on 11)

The ray tracing unit of claim 11, wherein the bounding volume structure is defined with reference to an octree structure.

### Claim 17 (depends on 11)

The ray tracing unit of claim 11, further comprising intersection testing logic configured to perform intersection testing using the hierarchical acceleration structure by traversing the hierarchical acceleration structure by:
traversing the one or more upper levels of nodes of the hierarchical acceleration structure according to a first traversal technique, said first traversal technique being a depth-first traversal technique; and
traversing the one or more lower levels of nodes of the hierarchical acceleration structure according to a second traversal technique, said second traversal technique not being a depth-first traversal technique.

### Claim 18 (depends on 17)

The ray tracing unit of claim 17, further comprising processing logic configured to use results of said intersection testing for rendering an image of the scene.

### Claim 19

A non-transitory computer readable storage medium having stored thereon computer readable code which, when executed, causes at least one processor to:
determine nodes of a hierarchical acceleration structure, wherein each node of one or more upper levels of the hierarchical acceleration structure has a spatial subdivision structure which is different from a bounding volume structure of each node of one or more lower levels of the hierarchical acceleration structure; and
use the hierarchical acceleration structure, as part of rendering an image of the scene.

### Claim 20 (depends on 19)

The non-transitory computer readable storage medium of claim 19, wherein the computer readable code further causes the at least one processor to:
receive primitive data for primitives located in the scene, wherein the nodes of the hierarchical acceleration structure are determined based on the received primitive data; and
store the hierarchical acceleration structure for use in intersection testing in a ray tracing system.
