Query-specific behavioral modification of tree traversal
Abstract
Methods and systems are described in some examples for changing the traversal of an acceleration data structure in a highly dynamic query-specific manner, with each query specifying test parameters, a test opcode and a mapping of test results to actions. In an example ray tracing implementation, traversal of a bounding volume hierarchy by a ray is performed with the default behavior of the traversal being changed in accordance with results of a test performed using the test opcode and test parameters specified in the ray data structure and another test parameter specified in a node of the bounding volume hierarchy. In an example implementation a traversal coprocessor is configured to perform the traversal of the bounding volume hierarchy.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 30 · Forward citations: 0.
Claims (19 — 2 Independent, 17 Dependent)
- Claim 1Independent Claim
A method of ray tracing, comprising: accessing ray data corresponding to a ray and an acceleration data structure corresponding to a scene, wherein the accessed ray data includes at least an opcode representing an arithmetic or logical operation, a first set of one or more mode flags associated with a first type of intersection test and a second set of one or more mode flags associated with a second type of intersection test; traversing the acceleration data structure in accordance with the ray data; during the traversing, performing for at least one node in the acceleration data structure an intersection test based upon geometric attributes of the ray and the acceleration data structure and an auxiliary ray operation test based on the opcode; based on results of the intersection test and the auxiliary ray operation test, during the traversing, selecting a mode flag from one of the first set or the second set based on whether the performed intersection test is of the first type or of the second type, and performing at least one of changing a state of the traversing and selecting an output data corresponding to one or more nodes of the acceleration data structure intersected by the ray based at least on the selected mode flag; and providing output data from the traversing to a rendering process for rendering at least a portion of the scene.
- Claim 2Depends on #1
The method according to claim 1, wherein the first type of intersection test is a ray-complet intersection test, and the second type of intersection test is a ray-primitive intersection test.
- Claim 3Depends on #1
The method according to claim 1, wherein the first type of intersection test is performed in a first hardware circuit in a coprocessor and the second type of intersection test is performed in a second hardware circuit, different from the first hardware circuit, in the coprocessor.
- Claim 4Depends on #3
The method according to claim 3, wherein the first set of one or more mode flags and the second set of one or more mode flags are accessed are accessed in a memory on the coprocessor.
- Claim 5Depends on #3
The method according to claim 3, wherein said mode flag is selected further based on a node type of the at least one node.
- Claim 6Depends on #1
The method according to claim 1, wherein the performing an intersection test and an auxiliary ray operation test comprises selecting the auxiliary ray operation test based upon the opcode.
- Claim 7Depends on #6
The method according to claim 6, wherein the performing an intersection test and an auxiliary ray operation test further comprises performing the selected ray operation test based upon at least one parameter each from the ray data and the at least one node.
- Claim 8Depends on #7
The method according to claim 7, wherein the at least one parameter from the ray data is configurable per ray and the at least one parameter from the at least one node is configurable per node.
- Claim 9Depends on #7
The method according to claim 7, wherein the performing an intersection test and an auxiliary ray operation test further comprises performing the selected ray operation test based on non-geometric attributes of the ray and the acceleration data structure.
- Claim 10Depends on #6
The method according to claim 6, wherein the performing an intersection test and an auxiliary ray operation test further comprises performing the selected ray operation test based upon one parameter from the at least one node and the opcode.
- Claim 11Depends on #6
The method according to claim 6, wherein the perform at least one of changing a state of the traversing or selecting an output data further comprises changing, based on said one or more mode flags, an order in which respective nodes in the accelerated data structure are traversed during said traversing.
- Claim 12Depends on #6
The method according to claim 6, wherein said mode flag is selected further based on a node type of the at least one node.
- Claim 13Depends on #6
The method according to claim 6, wherein the perform at least one of changing a state of the traversing or selecting an output data further comprises dynamically changing, based on one or more said mode flags, a structure of the accelerated data structure by culling a portion of the accelerated data structure.
- Claim 14Independent Claim
A system comprising a traversal coprocessor comprising hardware processing circuitry for traversing acceleration data structures, configured to: access ray data corresponding to a ray and an acceleration data structure corresponding to a scene, wherein the accessed ray data includes at least an opcode representing an arithmetic or logical operation, a first set of one or more mode flags associated with a first type of intersection test and a second set of one or more mode flags associated with a second type of intersection test; traverse the acceleration data structure in accordance with the ray data; during the traversing, perform for at least one node in the acceleration data structure an intersection test based upon geometric attributes of the ray and the acceleration data structure and an auxiliary ray operation test based on the opcode; based on results of the intersection test and the auxiliary ray operation test, during the traversing, select a mode flag from one of the first set or the second set based on whether the performed intersection test is of the first type or of the second type, and perform at least one of changing a state of the traversing and selecting an output data corresponding to one or more nodes of the acceleration data structure intersected by the ray based at least on the selected mode flag; and provide output data form the traversing to a rendering process for rendering at least a portion of the scene.
- Claim 15Depends on #14
The system according to claim 14, wherein the first type of intersection test is a ray-complet intersection test, and the second type of intersection test is a ray-primitive intersection test.
- Claim 16Depends on #14
The system according to claim 14, wherein the first type of intersection test is performed in a first hardware circuit in the traversal coprocessor and the second type of intersection test is performed in a second hardware circuit, different from the first hardware circuit, in the traversal coprocessor.
- Claim 17Depends on #16
The system according to claim 16, wherein the first set of one or more mode flags and the second set of one or more mode flags are accessed are accessed in a memory on the traversal coprocessor.
- Claim 18Depends on #16
The system according to claim 16, wherein said mode flag is selected further based on a node type of the at least one node.
- Claim 19Depends on #14
The system according to claim 14, wherein the performing an intersection test and an auxiliary ray operation test comprises selecting the auxiliary ray operation test based upon the opcode.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 17/513,023, filed Oct. 28, 2021, which is a continuation of U.S. patent application Ser. No. 16/893,107, filed on Jun. 4, 2020, now U.S. Pat. No. 11,189,075, issued on Nov. 30, 2021, which is a continuation of U.S. patent application Ser. No. 16/101,180 filed Aug. 10, 2018, now U.S. Pat. No. 10,867,429, issued Dec. 15, 2020, which is related to the following commonly-assigned US patents and patent applications, the entire contents of each of which are incorporated by reference: U.S. application Ser. No. 14/563,872, now U.S. Pat. No. 10,235,338, issued Mar. 19, 2019 titled “ Short Stack Traversal of Tree Data Structures ” filed Dec. 8, 2014; U.S. Pat. No. 9,582,607 titled “ Block-Based Bounding Volume Hierarchy ” ; U.S. Pat. No. 9,552,664 titled “ Relative Encoding For A Block-Based Bounding Volume Hierarchy ” as; U.S. Pat. No. 9,569,559 titled “ Beam Tracing ” filed Mar. 18, 2015; U.S. Pat. No. 10,025,879 titled “ Tree Data Structures Based on a Plurality of Local Coordinate Systems ” ; U.S. application Ser. No. 14/737,343, which is now abandoned titled “ Block-Based Lossless Compression of Geometric Data ” filed Jun. 11, 2015; and the following US Applications filed concurrently with U.S. patent application Ser. No. 16/101,180: U.S. patent application Ser. No. 16/101,066 filed Aug. 10, 2018, now U.S. Pat. No. 10,580,196 issued Mar. 3, 2020, titled “ Method for Continued Bounding Volume Hierarchy Traversal On Intersection Without Shader Intervention ” ; U.S. patent application Ser. No. 16/101,109 filed Aug. 10, 2018, titled “ Method for Efficient Grouping of Cache Requests for Datapath Scheduling ” ; U.S. patent application Ser. No. 16/101,247 filed Aug. 10, 2018, titled “ Robust, Efficient Multiprocessor-Coprocessor Interface ”
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (30)
Non-Patent Literature (10)
- Chinese Office Action for Application No. 201910492554 dated Dec. 1, 2023, 7 pages.
- Foley, James D., et al.,
- “
- Computer Graphics: Principles and Practice,
- ”
- 2nd Edition Addison-Wesley 1996 and 3
- Edition Addison-Wesley 2014.
- Appel, Arthur,
- “
- Some techniques for shading machine renderings of solids,