IP Library › Granted Patent US 11,521,308
Granted Patent B2
US 11,521,308 · App. 16/864,002 · Granted Dec 6, 2022

Ambient occlusion using bounding volume hierarchy bounding box tests

Inventors: Skyler Jonathon Saleh (San Diego, CA); Chen Huang (San Diego, CA)
Assignee: Advanced Micro Devices, Inc.
G06T7/0002G06F9/5027G06T15/005G06T15/06G06T15/08G06T17/10
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,521,308
App. No.
16/864,002
Granted
Dec 6, 2022
Kind
B2
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 (45)

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.

2. 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.

3. 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.

4. 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.

5. The method of claim 4 , wherein:

boxes that are well-fit to underlying geometry have at least one dimension that is below a threshold.

6. 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.

7. 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.

8. 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.

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

10. A device for performing a ray intersection test, the 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.

11. 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.

12. 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.

13. 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.

14. The device of claim 13 , wherein:

boxes that are well-fit to underlying geometry have at least one dimension that is below a threshold.

15. 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.

16. 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.

17. 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.

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

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.

20. 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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 9, 2021
From: SALEH, SKYLER JONATHON; HUANG, CHEN
To: ADVANCED MICRO DEVICES, INC.
Reel/Frame 055540/0385 →
Continuity (1)
Related Publication 20210342996A1 · Nov 4, 2021