Intersection testing in a ray tracing system using offset intersection distances
Abstract
A method and an intersection testing module for performing intersection testing in a ray tracing system determines a first offset intersection distance which is equal to a sum of an intersection distance at which a ray intersects a first primitive and a first offset which is dependent upon the orientation of the first primitive. A second offset intersection distance is determined which is equal to a sum of an intersection distance at which the ray intersects a second primitive and a second offset which is dependent upon the orientation of the second primitive. The determined first and second offset intersection distances are compared to select the intersection of the ray with one of the first and second primitives.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A computer-implemented method of performing intersection testing in a ray tracing system, the method comprising: determining a first offset intersection distance which is equal to a sum of an intersection distance at which a ray intersects a first primitive and a first offset which is dependent upon the orientation of the first primitive; determining a second offset intersection distance which is equal to a sum of an intersection distance at which the ray intersects a second primitive and a second offset which is dependent upon the orientation of the second primitive; and comparing the determined first and second offset intersection distances to select the intersection of the ray with one of the first and second primitives.
- Claim 2Depends on #1
The method of claim 1, wherein said determining the first offset intersection distance comprises determining the intersection distance at which the ray intersects the first primitive, and wherein said determining the second offset intersection distance comprises determining the intersection distance at which the ray intersects the second primitive.
- Claim 3Depends on #2
The method of claim 2, wherein said determining the first offset intersection distance comprises offsetting the determined intersection distance at which the ray intersects the first primitive by the first offset.
- Claim 4Depends on #2
The method of claim 2, wherein said determining the second offset intersection distance comprises offsetting the determined intersection distance at which the ray intersects the second primitive by the second offset.
- Claim 5Depends on #1
The method of claim 1, wherein the orientation of the first primitive is different to the orientation of the second primitive, and wherein the first offset is different to the second offset.
- Claim 6Depends on #5
The method of claim 5, wherein the first offset is zero and the second offset is non-zero.
- Claim 7Depends on #5
The method of claim 5, wherein the second offset is zero and the first offset is non-zero.
- Claim 8Depends on #1
The method of claim 1, wherein if the first offset is non-zero, then an offset with the same sign as the first offset is used for determining offset intersection distances for any primitives which have the same orientation as the first primitive, and wherein if the second offset is non-zero, then an offset with the same sign as the second offset is used for determining offset intersection distances for any primitives which have the same orientation as the second primitive.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS AND CLAIM OF PRIORITY This application claims priority under 35 U.S.C. 119 from United Kingdom patent application Nos. GB2202657.9, GB2202658.7 and GB2202659.5, all filed on 25 Feb. 2022, which are herein incorporated by reference in their entirety. FIELD The present disclosure is directed to techniques of performing intersection testing in a ray tracing system. BACKGROUND Ray tracing is a computational rendering technique for generating an image of a scene (e.g. a 3D scene) by tracing paths of light ( ‘ rays ’ ) usually from the viewpoint of a camera through the scene. Each ray is modelled as originating from the camera and passing through a pixel into the scene. As a ray traverses the scene it may intersect objects within the scene. The interaction between a ray and an object it intersects can be modelled to create realistic visual effects. For example, in response to determining an intersection of a ray with an object, a shader program (i.e. a portion of computer code) may be executed in respect of the intersection. A programmer can write the shader program to define how the system reacts to the intersection which may, for example cause one or more secondary rays to be emitted into the scene, e.g. to represent a reflection of the ray off the intersected object or a refraction of the ray through the object (e.g. if the object is transparent or translucent). As another example, the shader program could cause one or more rays to be emitted into the scene for the purposes of determining whether the object is in shadow at the intersection point. The result of executing the shader program (and processing the relevant secondary rays) can be the calculation of a colour value for the pixel the ray passed through. Rendering an image of a scene using ray tracing may involve performing many intersection tests, e.g. billions of intersection tests for rendering an image of a scene. In order to reduce the number of intersection tests that
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 (20)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Vasilakis et al., Depth-fighting Aware Methods for Multi-fragment Rendering, 2012 (Year: 2012).
- Woop et al., Watertight Ray/Triangle Intersection, 2013 (Year: 2013).
- Sjoholm;
- “
- Best Practices: Using NVIDIA RTX Ray Tracing (Updated); URL:https://developer.nvidia.com/blog/best-practices-using-nvidia-rtx-ray-tracing/
- ”
- ; Aug. 10, 2020; pp. 1-10.
- Woop et al;
- “
- Watertight Ray/Triangle Intersection