# US 2024/0203036 A1 · Technique for generating a bounding volume hierarchy

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

- Number: US 2024/0203036 A1
- Document ID: US20240203036A1
- Status: Published application
- Kind: A1
- Application number: 18/083,298
- Filed: 2022-12-16
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: John Alexandre Tsakok
- Web page: https://patentgrep.com/patent/US20240203036A1

## CPC

- G06T 15/06: Ray-tracing
- G06T 15/08: Volume rendering
- G06T 15/10: Geometric effects
- G06T 17/005: {Tree description, e.g. octree, quadtree}
- G06T 2210/12: Bounding box
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A technique for building a bounding volume hierarchy is disclosed. The technique subdividing a candidate box node based on a resolution to generate a plurality of cells of the candidate box node; identifying a plurality of nodes of a triangle set collection that fit within the cells; generating a plurality of candidate splits based on the plurality of nodes; selecting a candidate split based on a selection criterion to obtain a selected candidate split; and generating child box nodes for a box node of a bounding volume hierarchy under construction, based on the selected candidate split.

## Claims

### Claim 1

A method of building a bounding volume hierarchy, the method comprising:
subdividing a candidate box node based on a resolution to generate a plurality of cells of the candidate box node;
identifying a plurality of nodes of a primitive set collection that fit within the cells;
generating a plurality of candidate splits based on the plurality of nodes;
selecting a candidate split based on a selection criterion to obtain a selected candidate split; and
generating child box nodes for a box node of a bounding volume hierarchy under construction, based on the selected candidate split.

### Claim 2 (depends on 1)

The method of claim 1, wherein the resolution indicates a number of cells into which to subdivide the candidate box node.

### Claim 3 (depends on 1)

The method of claim 1, wherein identifying the plurality of nodes that fit within the cells includes identifying nodes whose centroid boxes fit within a single cell of the cells of the candidate box node.

### Claim 4 (depends on 3)

The method of claim 3, wherein the centroid boxes comprise boxes that bound centroids of primitives of a node.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the plurality of candidate splits comprises splitting a bounding volume of the candidate box node based on a boundary aligned with the plurality of cells.

### Claim 6 (depends on 1)

The method of claim 1, wherein selecting the candidate split comprises evaluating the plurality of candidate splits according to the selection criterion and selecting one of the candidate splits.

### Claim 7 (depends on 1)

The method of claim 1, wherein the selection criterion is a lowest total bounding box surface area criterion.

### Claim 8 (depends on 1)

The method of claim 1, wherein generating the child box nodes comprises generating a child box node for each side of the selected candidate split, where each child box node has a bounding box that bounds each primitive of a side corresponding to the child box node.

### Claim 9 (depends on 1)

The method of claim 1, further comprising repeating the subdividing, identifying, generating the plurality of candidate splits, selecting, and generating the child box nodes for multiple box nodes of a bounding volume hierarchy under construction.

### Claim 10

A system of building a bounding volume hierarchy, the system comprising:
a memory configured to store a bounding volume hierarchy; and
a bounding volume hierarchy builder configured to build the bounding volume hierarchy, by performing operations including:
subdividing a candidate box node of the bounding volume hierarchy based on a resolution to generate a plurality of cells of the candidate box node;
identifying a plurality of nodes of a primitive set collection that fit within the cells;
generating a plurality of candidate splits based on the plurality of nodes;
selecting a candidate split based on a selection criterion to obtain a selected candidate split; and
generating child box nodes for a box node of the bounding volume hierarchy under construction, based on the selected candidate split.

### Claim 11 (depends on 10)

The system of claim 10, wherein the resolution indicates a number of cells into which to subdivide the candidate box node.

### Claim 12 (depends on 10)

The system of claim 10, wherein identifying the plurality of nodes that fit within the cells includes identifying nodes whose centroid boxes fit within a single cell of the cells of the candidate box node.

### Claim 13 (depends on 12)

The system of claim 12, wherein the centroid boxes comprise boxes that bound centroids of primitives of a node.

### Claim 14 (depends on 10)

The system of claim 10, wherein generating the plurality of candidate splits comprises splitting a bounding volume of the candidate box node based on a boundary aligned with the plurality of cells.

### Claim 15 (depends on 10)

The system of claim 10, wherein selecting the candidate split comprises evaluating the plurality of candidate splits according to the selection criterion and selecting one of the candidate splits.

### Claim 16 (depends on 10)

The system of claim 10, wherein the selection criterion is a lowest total bounding box surface area criterion.

### Claim 17 (depends on 10)

The system of claim 10, wherein generating the child box nodes comprises generating a child box node for each side of the selected candidate split, where each child box node has a bounding box that bounds each primitive of a side corresponding to the child box node.

### Claim 18 (depends on 10)

The system of claim 10, wherein the bounding volume hierarchy builder is further configured to repeat the subdividing, identifying, generating the plurality of candidate splits, selecting, and generating the child box nodes for multiple box nodes of a bounding volume hierarchy under construction.

### Claim 19

A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:
subdividing a candidate box node based on a resolution to generate a plurality of cells of the candidate box node;
identifying a plurality of nodes of a primitive set collection that fit within the cells;
generating a plurality of candidate splits based on the plurality of nodes;
selecting a candidate split based on a selection criterion to obtain a selected candidate split; and
generating child box nodes for a box node of a bounding volume hierarchy under construction, based on the selected candidate split.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the resolution indicates a number of cells into which to subdivide the candidate box node.
