# US 2021/0342996 A1 · Ambient occlusion using bounding volume hierarchy bounding box tests

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

- Number: US 2021/0342996 A1
- Document ID: US20210342996A1
- Status: Published application
- Kind: A1
- Application number: 16/864,002
- Filed: 2020-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Skyler Jonathon Saleh; Chen Huang
- Web page: https://patentgrep.com/patent/US20210342996A1

## CPC

- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06T 15/005: {General purpose rendering architectures}
- G06T 15/06: Ray-tracing
- G06T 15/08: Volume rendering
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technique for performing a ray intersection test, the method comprising: receiving a request for an early termination ray intersection test for a ray; testing the ray against one or more early termination box nodes and one or more normal box nodes of a bounding volume hierarchy; and based on the test of the ray against the one or more early termination box nodes, determining whether to end traversal of the bounding volume hierarchy and determine whether the ray intersects geometry for the purpose of the ray intersection test.

## Claims

### Claim 1

A method for performing a ray intersection test, the method comprising:
receiving a request for an early termination ray intersection test for a ray;
testing the ray against one or more early termination box nodes and one or more normal box nodes of a bounding volume hierarchy; and
based on the test of the ray against the one or more early termination box nodes, determining whether to end traversal of the bounding volume hierarchy and determine whether the ray intersects geometry for the purpose of the ray intersection test.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining whether to end traversal and whether the ray intersects geometry comprises:
responsive to determining that the ray intersects an early termination box node, determining that the ray intersects geometry and stopping traversal of the bounding volume hierarchy.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining whether to end traversal and whether the ray intersects geometry comprises:
responsive to determining that the ray does not intersect an early termination box node, removing from consideration children of the early termination box node.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the one or more early termination box nodes are associated with boxes considered to be will-fit to underlying geometry.

### Claim 5 (depends on 4)

The method of claim 4, wherein:
boxes that are well-fit to underlying geometry have at least one dimension that is below a threshold.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
repeating the receiving, testing, and determining steps a plurality of times for a plurality of rays to obtain an ambient occlusion factor.

### Claim 7 (depends on 6)

The method of claim 6, wherein the ambient occlusion factor reflects a percentage of rays of the plurality of rays that are deemed to intersect geometry.

### Claim 8 (depends on 1)

The method of claim 1, wherein:
determining whether to end traversal of the bounding volume hierarchy and determine whether the ray intersects geometry for the purpose of the ray intersection test comprises: responsive to determining that the ray intersects an early intersection box node within a proximal volume, continuing traversal past the early termination box node.

### Claim 9 (depends on 1)

The method of claim 1, wherein the proximal volume comprises one of a triangular prism and a semisphere.

### Claim 10

A device for performing a ray intersection test, the accelerated processing device comprising:
a processor; and
a memory configured to store at least a portion of a bounding volume hierarchy,
wherein the processor is configured to:
receive a request for an early termination ray intersection test for a ray;
test the ray against one or more early termination box nodes and one or more normal box nodes of the bounding volume hierarchy; and
based on the test of the ray against the one or more early termination box nodes, determine whether to end traversal of the bounding volume hierarchy and determine whether the ray intersects geometry for the purpose of the ray intersection test.

### Claim 11 (depends on 10)

The device of claim 10, wherein determining whether to end traversal and whether the ray intersects geometry comprises:
responsive to determining that the ray intersects an early termination box node, determining that the ray intersects geometry and stopping traversal of the bounding volume hierarchy.

### Claim 12 (depends on 10)

The device of claim 10, wherein determining whether to end traversal and whether the ray intersects geometry comprises:
responsive to determining that the ray does not intersect an early termination box node, removing from consideration children of the early termination box node.

### Claim 13 (depends on 10)

The device of claim 10, wherein:
the one or more early termination box nodes are associated with boxes considered to be will-fit to underlying geometry.

### Claim 14 (depends on 13)

The device of claim 13, wherein:
boxes that are well-fit to underlying geometry have at least one dimension that is below a threshold.

### Claim 15 (depends on 10)

The device of claim 10, wherein the processor is further configured to:
repeat the receiving, testing, and determining steps a plurality of times for a plurality of rays to obtain an ambient occlusion factor.

### Claim 16 (depends on 15)

The device of claim 15, wherein the ambient occlusion factor reflects a percentage of rays of the plurality of rays that are deemed to intersect geometry.

### Claim 17 (depends on 10)

The device of claim 10, wherein:
determining whether to end traversal of the bounding volume hierarchy and determine whether the ray intersects geometry for the purpose of the ray intersection test comprises: responsive to determining that the ray intersects an early intersection box node within a proximal volume, continuing traversal past the early termination box node.

### Claim 18 (depends on 10)

The device of claim 10, wherein the proximal volume comprises one of a triangular prism and a semisphere.

### Claim 19

A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform a ray intersection test, by:
receiving a request for an early termination ray intersection test for a ray;
testing the ray against one or more early termination box nodes and one or more normal box nodes of a bounding volume hierarchy; and
based on the test of the ray against the one or more early termination box nodes, determining whether to end traversal of the bounding volume hierarchy and determine whether the ray intersects geometry for the purpose of the ray intersection test.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein determining whether to end traversal and whether the ray intersects geometry comprises:
responsive to determining that the ray intersects an early termination box node, determining that the ray intersects geometry and stopping traversal of the bounding volume hierarchy.
