# US 2025/0166287 A1 · Accelerated bounding volume hierarchy (bvh) traversal 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 2025/0166287 A1
- Document ID: US20250166287A1
- Status: Published application
- Kind: A1
- Application number: 19/031,051
- Filed: 2025-01-17
- Published: 2025-05-22
- Earliest claimed: 2022-09-23
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Piyush GUPTA; Pavan Kumar AKKARAJU; Alexei Vladimirovich BOURD; Andrew Evan GRUBER
- Web page: https://patentgrep.com/patent/US20250166287A1

## CPC

- G06T 15/06: Ray-tracing
- G06T 17/005: {Tree description, e.g. octree, quadtree}
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Systems and techniques are provided for accelerated ray tracing. For instance, a process can include obtaining a hierarchical acceleration data structure that includes a plurality of primitives of a scene object and obtaining a respective information value associated with each primitive included in the plurality of primitives. A sort order can be determined for two or more nodes included in a same level of the hierarchical acceleration data structure at least in part by sorting the two or more nodes based on a respective sorting parameter value determined for each respective node of the two or more nodes. Each respective sorting parameter value can be determined based on at least one information value associated with one or more primitives included in a sub-tree of each respective node of the two or more nodes. The hierarchical acceleration data structure can be traversed using the sort order.

## Claims

### Claim 1

A method of ray tracing, the method comprising:
obtaining a hierarchical acceleration data structure, the hierarchical acceleration data structure including a plurality of primitives of a scene object;
obtaining, using an Application Programming Interface (API), an information value associated with each primitive in the plurality of primitives;
determining, using a functional computation, a plurality of sorting parameter values for a plurality of nodes in the hierarchical acceleration data structure, the plurality of sorting parameter values including a sorting parameter value for each node of the plurality of nodes, wherein the sorting parameter value for a node is based on information values associated with primitives in a sub-tree of the node; and
traversing the hierarchical acceleration data structure in association with the plurality of sorting parameter values for the plurality of nodes in the hierarchical acceleration data structure.

### Claim 2 (depends on 1)

The method of claim 1, further comprising obtaining, using the API, an indication of the functional computation, wherein the functional computation is selected, from a plurality of functional computations, to determine the plurality of sorting parameter values based on obtaining the indication.

### Claim 3 (depends on 1)

The method of claim 1, wherein traversing the hierarchical acceleration data structure in association with the plurality of sorting parameter values comprises determining an updated hierarchical acceleration data structure that includes the same nodes but reordered based on the plurality of sorting parameter values.

### Claim 4 (depends on 3)

The method of claim 3, wherein the traversing is based on a predetermined traversal technique without using the plurality of sorting parameter values.

### Claim 5 (depends on 4)

The method of claim 4, wherein the predetermined traversal technique is a depth-first search (DFS) traversal.

### Claim 6 (depends on 1)

The method of claim 1, wherein traversing the hierarchical acceleration data structure in association with the plurality of sorting parameter values comprises prioritizing visits to nodes of the hierarchical acceleration data structure based on the plurality of sorting parameter values.

### Claim 7 (depends on 1)

The method of claim 1, wherein the information value associated with each primitive includes at least one of a Surface Area Heuristic (SAH) value, an opaqueness value, or a density value.

### Claim 8 (depends on 1)

The method of claim 1, wherein each respective information value associated with each primitive includes at least one of an area value, a distance value between each respective primitive and a camera associated with the scene object, or a level-of-detail (LOD) value.

### Claim 9 (depends on 1)

The method of claim 1, wherein each respective information value associated with each primitive is included as an entry in a render list associated with the scene object.

### Claim 10 (depends on 1)

The method of claim 1, wherein a sort order based on the plurality of sorting parameter values is a decreasing order based on the sorting parameter value associated with each node.

### Claim 11

An apparatus for ray tracing, the apparatus comprising:
at least one memory; and
at least one processor coupled to the at least one memory, the at least one processor configured to:
obtain a hierarchical acceleration data structure, the hierarchical acceleration data structure including a plurality of primitives of a scene object;
obtain, using an Application Programming Interface (API), an information value associated with each primitive in the plurality of primitives;
determine, using a functional computation, a plurality of sorting parameter values for a plurality of nodes in the hierarchical acceleration data structure, the plurality of sorting parameter values including a sorting parameter value for each node of the plurality of nodes, wherein the sorting parameter value for a node is based on information values associated with primitives in a sub-tree of the node; and
traverse the hierarchical acceleration data structure in association with the plurality of sorting parameter values for the plurality of nodes in the hierarchical acceleration data structure.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the at least one processor is configured to obtain, using the API, an indication of the functional computation, wherein the functional computation is selected, from a plurality of functional computations, to determine the plurality of sorting parameter values based on obtaining the indication.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein, to traverse the hierarchical acceleration data structure in association with the plurality of sorting parameter values, the at least one processor is configured to determine an updated hierarchical acceleration data structure that includes the same nodes but reordered based on the plurality of sorting parameter values.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the at least one processor is configured to traverse the hierarchical acceleration data structure based on a predetermined traversal technique without using the plurality of sorting parameter values.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the predetermined traversal technique is a depth-first search (DFS) traversal.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein, to traverse the hierarchical acceleration data structure in association with the plurality of sorting parameter values, the at least one processor is configured to prioritize visits to nodes of the hierarchical acceleration data structure based on the plurality of sorting parameter values.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the information value associated with each primitive includes at least one of a Surface Area Heuristic (SAH) value, an opaqueness value, or a density value.

### Claim 18 (depends on 11)

The apparatus of claim 11, wherein each respective information value associated with each primitive includes at least one of an area value, a distance value between each respective primitive and a camera associated with the scene object, or a level-of-detail (LOD) value.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein each respective information value associated with each primitive is included as an entry in a render list associated with the scene object.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein a sort order based on the plurality of sorting parameter values is a decreasing order based on the sorting parameter value associated with each node.
