EP1966766A1 - Applications of interval arithmetic for reduction of number of computations in ray tracing problems - Google Patents
Applications of interval arithmetic for reduction of number of computations in ray tracing problemsInfo
- Publication number
- EP1966766A1 EP1966766A1 EP05856151A EP05856151A EP1966766A1 EP 1966766 A1 EP1966766 A1 EP 1966766A1 EP 05856151 A EP05856151 A EP 05856151A EP 05856151 A EP05856151 A EP 05856151A EP 1966766 A1 EP1966766 A1 EP 1966766A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- group
- rays
- cell
- geometrical
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/06—Ray-tracing
Definitions
- Implementations of the claimed invention generally may relate to ray tracing and, more particularly, to interval arithmetic for ray tracing.
- Ray tracing is a well know method used in modeling of a variety of physical phenomena related to wave propagation in various media. For example it is used for computing an illumination solution in photorealistic computer graphics, for complex environment channel modeling in wireless communication, aureal rendering in advanced audio applications, etc.
- a ray is a half line of infinite length originating at a point in space described by a position vector which travels from said point along a direction vector.
- Ray tracing is used in computer graphics to determine visibility by directing one or more rays from a vantage point described by the ray's position vector along a line of sight described by the ray's direction vector. To determine the nearest visible surface along that line of sight requires that the ray be effectively tested for intersection against all the geometry within the virtual scene and retain the nearest intersection.
- FP floating-point
- 1/3) is approximated by a value that is less than or greater than the desired value.
- the error introduced is often asymmetrical - the difference between the exact value and the closest lower FP approximation may be much greater or less than the difference to the closest higher FP approximation. Such numerical errors may be propagated and accumulate though all the computations, sometimes creating serious problems.
- interval arithmetic is limited to certain classes of workloads (such as quality control, economics or quantum mechanics) where the additional costs of such interval computations significantly outweigh the implications of dealing with inexact FP numbers for any final values.
- FIG. 1 illustrates an example of multiple rays traced through a cell from a common origin, executed during traversal of a binary tree.
- FIG. 2 illustrates an example of interval implementation of traversing multiple rays through a binary tree.
- FIG. 3 is a flow chart illustrating a process of traversing multiple rays through a binary tree using an interval technique.
- Embodiments provide for ray tracing traversal that relies on selected geometrical properties of the application to reduce the number of floating point (or other data type operations such as integer, fixed point) operations required during each traversal step.
- the interval traversal algorithm does not depend on the number of rays in the group. Multi-level traversal schemes may be implemented, starting with a large number of rays in a group and then reducing it as needed to maintain group coherency. Additional rays may be generated during traversal to improve anti-aliasing properties of the resulting image in areas of high geometrical complexity.
- the interval traversal algorithm groups parallel geometrical queries, extracts selected common geometrical characteristics pertinent for the whole group, and then executes a query using only these characteristics (and not the whole group).
- FIG. 1 illustrates an example 100 of multiple rays 102 traced through a cell 104 from a common origin 106 for traversal of a binary tree.
- One cell 104 is split into two subspaces including a nearest cell CO 108 and farthest cell Cl 110 by split plane PO.
- Rays 102 may be shot through pixels on the screen into a database representing all of the objects in a scene. These objects (suitably sub-divided) and data may represent empty space, and may be stored in a hierarchical spatial partitioning structure. Shooting a ray 102 involves tracing the path the ray 102 may take through this structure. Opportunities for parallelism exist but are limited, as each ray may take a different path through the database, and since the data structure is hierarchical, there is a sequential dependency as the ray goes from one level to the next.
- the database may represent the distribution of objects and empty space as a collection of axis aligned spatial intervals.
- a collection of rays may be directly tested against any arbitrary level of the database hierarchy (i.e. not necessary starting at the top).
- the bundles of rays may be subdivided proceeding down the structure.
- a ray tracing environment it may be required to shoot lots of rays.
- One way to accomplish this is to determine the intersection of all rays against all of the polygons that define all of the geometrical objects in the scene.
- Another way to accomplish this is to partition all of these polygons into an axis aligned partitioning structure.
- One implementation of this is to split the entire scene up into a uniform grid of cubes, while replicating polygons that straddle the cube boundaries. A ray may be shot and the cubes the ray passes through predicted. The ray is only tested against the contents of each of these cubes, ignoring the rest.
- acceleration structure may be used to describe any such data structure designed to reduce the total number of ray-polygon intersection tests.
- the above uniform grid of cubes has the advantage that the trajectory of a ray through the cubes may be calculated easily, and the relevant data accessed directly. The detail in the scene may not be distributed evenly though. For example, a huge amount of polygons may end up in one cube, and very little detail in the others.
- Another acceleration structure construct is commonly referred to as a kd-tree. In this acceleration structure, some cost function may be used to recursively split the scene by axis-aligned planes.
- the scene may be split in two by such a plane, each half may then be split again along some other plane, and so forth.
- Each level of the acceleration structure may be recursively traversed to determine where the next level of the structure can be found. Cost functions are carefully chosen in the construction phase of these structures to achieve optimum performance while traversing these trees later when shooting the various rays needed for visualization.
- the leaf nodes of a kd-tree represent a small axis aligned cell wherein there is some number of polygons.
- each node represents an axis aligned box which is completely filled by two of the leaf nodes (a "split-plane" splits the larger volume into the two leaf cells).
- each node represents an axis aligned box completely filled by two of the lower level nodes using a similar split-plane and so on.
- the tree is not required to be balanced, that is any internal node may be split into leaf node and another internal node.
- a ray may be intersected against the bounding box to determine whether: (1) the ray completely misses the box, (2) the ray hits the box and passes through the "left" sub-node - i.e. to the "left" of the split- plane, (3) the ray hits the box and passes through the "right” sub-box, or (4) the ray hits and passes through both of the sub-boxes.
- the further processing of the lower level nodes is no longer necessary, as the ray "misses" the entire lower part of the tree.
- Embodiments of the invention are applicable to many acceleration structures, including those that use separation planes to determine which objects have to be tested for a particular ray. These acceleration structures include but are not limited to grids, bounding boxes and kd-trees.
- the traversal algorithms determine if the rays 102 :
- exit distances are compared with the plane intersection. For example, referring to FIG. 1, rays oa and ob will go only through the left cell 108, while rays oc and od go through both cells 108 and 110. The process is repeated for each subsequent cell that the rays pass through.
- the nearest cell 108 is recursively traversed first by executing all of the steps of
- the farthest cell data 110 is retrieved from the stack and the whole process is repeated. [0024] If some cell contains primitive objects (such as triangles), the remaining rays which pass through this cell are tested against these objects. For example, ray / triangle intersection tests are performed.
- primitive objects such as triangles
- FIG. 2 illustrates an example 200 of multiple rays 202 traced through a cell 204 from a common origin 206 for interval traversal of a binary tree.
- FIG. 2 shows the next traversal step after the cell is split.
- FIG. 1 shows the case where one cell is split into two subspaces C 0 108 and C 1 110 by split-plane P 0 .
- C 0 208 is further split into Coo 210 and the union of C 2 212 and C 3 214.
- No ray 202 intersects the nearer sub-space Coo 210.
- the interval traversal algorithm is built upon the calculation and maintenance of one single interval for a group of rays, which includes minimum and maximum distances for all the rays in the bunch from a selected point (camera position) to a particular cell.
- a collection of rays may be represented as a single 3D vector of intervals pointing approximately in some particular direction.
- this interval may be defined as minimum and maximum coordinate value among all rays.
- the individual cells of the acceleration structure may be represented as intervals in x, y and z.
- Cells at any level of a hierarchical acceleration structure may be represented as such an interval.
- the vector of intervals representing one group of rays may be sub-divided into multiple groups of rays for efficiency. Higher degrees of ray coherency are typically found deeper in the acceleration structure.
- FIG. 3 is a flow chart illustrating a process 300 of interval traversal of a binary tree. Although process 300 may be described with regard to FIG. 2 for ease of explanation, the claimed invention is not limited in this regard. Acts 302, 304, and 306 of the FIG. 3 are executed once per traversal step, while acts 308-316 are executed for each traversed cell.
- a group of rays is generated and some common characteristics of the group of rays are computed. For those rays generated from a particular common point of origin such as camera position o through a screen with pixels p xy , the following are computed for each coordinate axis:
- act 304 the minimum and maximum distance values among all projections of direction vectors op xy on any given axis are computed.
- the x, y, and z coordinates of op xy vector will be inside an appropriate interval.
- the minimum and maximum distances oai and oAi are determined. These may be designated as interval [Oa 1 , oAi]. This interval is maintained and potentially modified (narrowed) during the remaining traversal process.
- the distance to the nearest cell entry point is not less than oai and the distance to the farthest cell exit point is less or equal to oA ⁇ .
- inverse direction intervals are defined.
- the minimum and maximum distances to the split plane Od 1nIn and od max may be computed using inverse direction intervals defined in act 306.
- sub-cells C 2 212 and C 3 214 are split by plane P 2 . It is determined whether both sub-cells C 2 212 and C 3 214 are traversed. In particular, this is determined by evaluating the following two conditions, which if satisfied, result in traversing only one sub-cell: ⁇
- both sub-cells have to be traversed (act 318) and appropriate intervals have to be modified. As shown in FIG. 2, during C 2 traversal, the interval will be [oa ⁇ , 0A 2 ]. For the cell C 3 , it will be [03 3 , 0A 1 ].
- interval traversal embodiments described herein are possible.
- embodiments described can be extended to ray groups which do not have a common origin.
- process 300 may be implemented on modern vector or SIMD (Single Instruction Multiple Data) machines, the claimed invention is not limited in this regard.
- SIMD Single Instruction Multiple Data
- the interval traversal algorithm is possible.
- One, provided above, is used only for presentation purposes, as well as particular cases featured on the supplied figures.
- the full algorithm basically implements simultaneous bounding box clipping of a particular group of rays. For any given cell, reached in the acceleration structure, the entry and exit points for all rays are known.
- the interval algorithm shown in FIG. 3 represents a lazy distributed box clipping, yielding guaranteed minimum and maximum clipping distances for the whole group of rays.
- Embodiments of the invention may sharply reduce the number of floating point or other data type operations required during each traversal step. Unlike the full traversal algorithm, the interval traversal algorithm does not depend on the number of rays in the group. Multi-level traversal schemes may be implemented starting with a large number of rays in a group and then reducing it as needed to maintain group coherency. The interval traversal algorithm, if implemented or supported in hardware, may enable a sharp reduction of power, consumed by the device, as well as increasing overall performance. Ray tracing is based on massively parallel geometrical queries, executed against some spatially ordered geometrical database.
- the interval traversal algorithm consists of grouping such queries, extracting certain common geometrical characteristics, pertinent for the whole group, and then executing a query using only these characteristics (and not the whole group). As such, the interval traversal approach may be extended to cover other types of applications, where it may be possible to find and trace certain group properties against a specialized database.
- systems are illustrated as including discrete components, these components may be implemented in hardware, software/firmware, or some combination thereof. When implemented in hardware, some components of systems may be combined in a certain chip or device.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
Abstract
Embodiments provide for ray tracing traversal that relies on selected geometrical properties of the application to reduce the number of operations required during each traversal step. The traversal algorithm does not depend on the number of rays in the group. As a result, multi-level traversal schemes may be implemented, starting with a large number of rays in a group and then reducing it as needed to maintain group coherency. Multi-level traversal schemes may be created by splitting large groups of rays while traversing acceleration structures.
Description
APPLICATIONS OF INTERVAL ARITHMETIC FOR REDUCTION OF NUMBER OF COMPUTATIONS IN RAY TRACING PROBLEMS
BACKGROUND [0001] Implementations of the claimed invention generally may relate to ray tracing and, more particularly, to interval arithmetic for ray tracing.
[0002] Ray tracing is a well know method used in modeling of a variety of physical phenomena related to wave propagation in various media. For example it is used for computing an illumination solution in photorealistic computer graphics, for complex environment channel modeling in wireless communication, aureal rendering in advanced audio applications, etc.
[0003] A ray is a half line of infinite length originating at a point in space described by a position vector which travels from said point along a direction vector. Ray tracing is used in computer graphics to determine visibility by directing one or more rays from a vantage point described by the ray's position vector along a line of sight described by the ray's direction vector. To determine the nearest visible surface along that line of sight requires that the ray be effectively tested for intersection against all the geometry within the virtual scene and retain the nearest intersection. [0004] When working with real values, data is often approximated by floating-point (FP) numbers with limited precision. FP representations are not uniform through the number space, and usually a desired real value (i.e. 1/3) is approximated by a value that is less than or greater than the desired value. The error introduced is often asymmetrical - the difference between the exact value and the closest lower FP approximation may be much greater or less than the difference to the closest higher FP approximation. Such numerical errors may be propagated and accumulate though all the computations,
sometimes creating serious problems.
[0005] One way to handle such numerical inaccuracies is to use intervals instead of FP approximations. In this case, any real number is represented by 2 FP values: one is less than the real one, and another is greater than the real one. The bound values are preserved throughout all computations, yielding an interval, which covers the exact solution.
Usually, applications using interval arithmetic are limited to certain classes of workloads (such as quality control, economics or quantum mechanics) where the additional costs of such interval computations significantly outweigh the implications of dealing with inexact FP numbers for any final values.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate one or more implementations consistent with the principles of the invention and, together with the description, explain such implementations. The drawings are not necessarily to scale, the emphasis instead being placed upon illustrating the principles of the invention. In the drawings
[0007] FIG. 1 illustrates an example of multiple rays traced through a cell from a common origin, executed during traversal of a binary tree. [0008] FIG. 2 illustrates an example of interval implementation of traversing multiple rays through a binary tree.
[0009] FIG. 3 is a flow chart illustrating a process of traversing multiple rays through a binary tree using an interval technique.
DETAILED DESCRIPTION [0010] The following detailed description refers to the accompanying drawings. The
same reference numbers may be used in different drawings to identify the same or similar elements. In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular structures, architectures, interfaces, techniques, etc. in order to provide a thorough understanding of the various aspects of the claimed invention. However, it will be apparent to those skilled in the art having the benefit of the present disclosure that the various aspects of the invention claimed may be practiced in other examples that depart from these specific details. In certain instances, descriptions of well known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail. [0011] Embodiments provide for ray tracing traversal that relies on selected geometrical properties of the application to reduce the number of floating point (or other data type operations such as integer, fixed point) operations required during each traversal step. The interval traversal algorithm does not depend on the number of rays in the group. Multi-level traversal schemes may be implemented, starting with a large number of rays in a group and then reducing it as needed to maintain group coherency. Additional rays may be generated during traversal to improve anti-aliasing properties of the resulting image in areas of high geometrical complexity. The interval traversal algorithm groups parallel geometrical queries, extracts selected common geometrical characteristics pertinent for the whole group, and then executes a query using only these characteristics (and not the whole group). Ray tracing is based on massively parallel geometrical queries, executed against some spatially ordered geometrical database. The interval traversal algorithm may be extended to cover other types of applications, where it may be possible to find and trace certain group properties against a specialized database. One skilled in the art will recognize that embodiments of the invention are not limited to floating point implementation. Rather, the embodiments of the invention may be implemented using
various data types, including but not limited to integer, fixed point and so forth. [0012] FIG. 1 illustrates an example 100 of multiple rays 102 traced through a cell 104 from a common origin 106 for traversal of a binary tree. One cell 104 is split into two subspaces including a nearest cell CO 108 and farthest cell Cl 110 by split plane PO. Rays 102 may be shot through pixels on the screen into a database representing all of the objects in a scene. These objects (suitably sub-divided) and data may represent empty space, and may be stored in a hierarchical spatial partitioning structure. Shooting a ray 102 involves tracing the path the ray 102 may take through this structure. Opportunities for parallelism exist but are limited, as each ray may take a different path through the database, and since the data structure is hierarchical, there is a sequential dependency as the ray goes from one level to the next.
[0013] The database may represent the distribution of objects and empty space as a collection of axis aligned spatial intervals. A collection of rays may be directly tested against any arbitrary level of the database hierarchy (i.e. not necessary starting at the top). The bundles of rays may be subdivided proceeding down the structure.
[0014] This results in improved numerical fidelity and simplifies the process of tracing rays. In particular, the number of operations required per ray is reduced, resulting in an improvement in overall application performance. Furthermore, hardware may be designed to directly implement such interval arithmetic, allowing additional performance improvement. Shooting of rays is not particular to graphics, similar technology may also used to track the propagation of waves of various kinds, calculating radar cross sections for military purposes etc.
[0015] In a ray tracing environment, it may be required to shoot lots of rays. One way to accomplish this is to determine the intersection of all rays against all of the polygons that define all of the geometrical objects in the scene.
[0016] Another way to accomplish this is to partition all of these polygons into an axis aligned partitioning structure. One implementation of this is to split the entire scene up into a uniform grid of cubes, while replicating polygons that straddle the cube boundaries. A ray may be shot and the cubes the ray passes through predicted. The ray is only tested against the contents of each of these cubes, ignoring the rest. Due to the relative efficiency of using such a representation versus testing every ray against every polygon, the term "acceleration structure" may be used to describe any such data structure designed to reduce the total number of ray-polygon intersection tests. [0017] The above uniform grid of cubes has the advantage that the trajectory of a ray through the cubes may be calculated easily, and the relevant data accessed directly. The detail in the scene may not be distributed evenly though. For example, a huge amount of polygons may end up in one cube, and very little detail in the others. [0018] Another acceleration structure construct is commonly referred to as a kd-tree. In this acceleration structure, some cost function may be used to recursively split the scene by axis-aligned planes. Initially, the scene may be split in two by such a plane, each half may then be split again along some other plane, and so forth. This results in a hierarchical organization of the structure. Each level of the acceleration structure may be recursively traversed to determine where the next level of the structure can be found. Cost functions are carefully chosen in the construction phase of these structures to achieve optimum performance while traversing these trees later when shooting the various rays needed for visualization.
[0019] The leaf nodes of a kd-tree represent a small axis aligned cell wherein there is some number of polygons. At the next level up the tree, each node represents an axis aligned box which is completely filled by two of the leaf nodes (a "split-plane" splits the larger volume into the two leaf cells). At the next level, each node represents an axis
aligned box completely filled by two of the lower level nodes using a similar split-plane and so on. The tree is not required to be balanced, that is any internal node may be split into leaf node and another internal node. At any given level, a ray may be intersected against the bounding box to determine whether: (1) the ray completely misses the box, (2) the ray hits the box and passes through the "left" sub-node - i.e. to the "left" of the split- plane, (3) the ray hits the box and passes through the "right" sub-box, or (4) the ray hits and passes through both of the sub-boxes. In the first case (1), the further processing of the lower level nodes is no longer necessary, as the ray "misses" the entire lower part of the tree. [0020] Embodiments of the invention are applicable to many acceleration structures, including those that use separation planes to determine which objects have to be tested for a particular ray. These acceleration structures include but are not limited to grids, bounding boxes and kd-trees. [0021] Referring to FIG. 1, For any given block of rays, the traversal algorithms determine if the rays 102 :
(1) pass through subspace 108 to the left of the split-plane 104;
(2) pass through the subspace 110 to the right of the split-plane 104; or
(3) passes through both sub-spaces 108 and 110.
[0022] During full traversal of a binary tree, for each ray 102, the cell entry and exit points are known. These are the distances represented by oa, ob, oc, od, and oA, oB, oC, oD which are known from previous computations. The intersection points with the split-
plane Po are calculated. They are represented as distances oα, oβ, oχ, and oδ. Entry and
exit distances are compared with the plane intersection. For example, referring to FIG. 1, rays oa and ob will go only through the left cell 108, while rays oc and od go through both
cells 108 and 110. The process is repeated for each subsequent cell that the rays pass through.
[0023] If the algorithm requires ray traversal of both cells 108 and 110, then all information, pertinent to the farthest cell such as 110, is stored in a stack-like structure. It
includes, in particular, the distances to the entry points oχ and oδ and the exit points oC
and oD. The nearest cell 108 is recursively traversed first by executing all of the steps of
the current processs with entry points a, b, c, and d and exit points A, B, χ, and δ. Once
all cells within the nearest one have been traversed, the farthest cell data 110 is retrieved from the stack and the whole process is repeated. [0024] If some cell contains primitive objects (such as triangles), the remaining rays which pass through this cell are tested against these objects. For example, ray / triangle intersection tests are performed.
[0025] In some cases, for each ray, a primitive object has been discovered such that the distance to it is less than the distance to the current cell. In this case, subsequent traversal steps are not necessary. If ray tracing is being used for rendering purposes, this refinement may be used if such a primitive object is opaque.
[0026] FIG. 2 illustrates an example 200 of multiple rays 202 traced through a cell 204 from a common origin 206 for interval traversal of a binary tree. FIG. 2 shows the next traversal step after the cell is split. In particular, FIG. 1 shows the case where one cell is split into two subspaces C0 108 and C1 110 by split-plane P0. In FIG. 2, C0208 is further split into Coo 210 and the union of C2212 and C3 214. No ray 202 intersects the nearer sub-space Coo 210.
[0027] The interval traversal algorithm is built upon the calculation and maintenance of one single interval for a group of rays, which includes minimum and maximum distances
for all the rays in the bunch from a selected point (camera position) to a particular cell. Instead of representing individual rays as 3D vectors pointing in particular directions, a collection of rays may be represented as a single 3D vector of intervals pointing approximately in some particular direction. Typically, the more coherent these rays are, the tighter the intervals may be. For each coordinate x, y, and z, this interval may be defined as minimum and maximum coordinate value among all rays. Similarly, the individual cells of the acceleration structure may be represented as intervals in x, y and z. Cells at any level of a hierarchical acceleration structure may be represented as such an interval. Upon traversing deeper into the acceleration structure, the vector of intervals representing one group of rays may be sub-divided into multiple groups of rays for efficiency. Higher degrees of ray coherency are typically found deeper in the acceleration structure.
[0028] FIG. 3 is a flow chart illustrating a process 300 of interval traversal of a binary tree. Although process 300 may be described with regard to FIG. 2 for ease of explanation, the claimed invention is not limited in this regard. Acts 302, 304, and 306 of the FIG. 3 are executed once per traversal step, while acts 308-316 are executed for each traversed cell.
[0029] In act 302, a group of rays is generated and some common characteristics of the group of rays are computed. For those rays generated from a particular common point of origin such as camera position o through a screen with pixels pxy, the following are computed for each coordinate axis:
—In act 304, the minimum and maximum distance values among all projections of direction vectors opxy on any given axis are computed. By definition, for every ray in the group, the x, y, and z coordinates of opxy vector will be inside an appropriate interval. At the beginning of the top cell traversal (act 304), the minimum and maximum distances
oai and oAi are determined. These may be designated as interval [Oa1, oAi]. This interval is maintained and potentially modified (narrowed) during the remaining traversal process. By definition, for any ray in the group, the distance to the nearest cell entry point is not less than oai and the distance to the farthest cell exit point is less or equal to oAχ. [0030] In act 306, inverse direction intervals are defined.
[0031] In act 308, the minimum and maximum distances to the split plane Od1nIn and odmax may be computed using inverse direction intervals defined in act 306. [0032] As shown in FIG. 2, sub-cells C2212 and C3 214 are split by plane P2. It is determined whether both sub-cells C2212 and C3 214 are traversed. In particular, this is determined by evaluating the following two conditions, which if satisfied, result in traversing only one sub-cell: ^
—In act 310, if the minimum distance to the cell (oai) is more than maximum distance to the plane (0A2), the [oai, oAi] interval is modified and only the right sub-cell is traversed (act 312). —In act 314, if the maximum distance to the cell (0A1) is less than minimum distance to the plane (033), the [oai, oAi] interval is modified and only the left sub-cell is traversed (act 316).
[0033] If neither of these conditions are true, both sub-cells have to be traversed (act 318) and appropriate intervals have to be modified. As shown in FIG. 2, during C2 traversal, the interval will be [oaχ, 0A2]. For the cell C3, it will be [033, 0A1].
[0034] One skilled in the art will recognize that different implementations of the interval traversal embodiments described herein are possible. For example, embodiments described can be extended to ray groups which do not have a common origin. Although process 300 may be implemented on modern vector or SIMD (Single Instruction Multiple Data) machines, the claimed invention is not limited in this regard.
[0035] Certainly, different implementations of the interval traversal algorithm are possible. One, provided above, is used only for presentation purposes, as well as particular cases featured on the supplied figures. It is also possible to extend the ideas, outlined here, to a more general case of ray bunches, which do not have common origin. The following observation helps to understand the differences between the full and the interval traversal algorithms. The full algorithm basically implements simultaneous bounding box clipping of a particular group of rays. For any given cell, reached in the acceleration structure, the entry and exit points for all rays are known. The interval algorithm shown in FIG. 3 represents a lazy distributed box clipping, yielding guaranteed minimum and maximum clipping distances for the whole group of rays.
[0036] Embodiments of the invention may sharply reduce the number of floating point or other data type operations required during each traversal step. Unlike the full traversal algorithm, the interval traversal algorithm does not depend on the number of rays in the group. Multi-level traversal schemes may be implemented starting with a large number of rays in a group and then reducing it as needed to maintain group coherency. The interval traversal algorithm, if implemented or supported in hardware, may enable a sharp reduction of power, consumed by the device, as well as increasing overall performance. Ray tracing is based on massively parallel geometrical queries, executed against some spatially ordered geometrical database. The interval traversal algorithm consists of grouping such queries, extracting certain common geometrical characteristics, pertinent for the whole group, and then executing a query using only these characteristics (and not the whole group). As such, the interval traversal approach may be extended to cover other types of applications, where it may be possible to find and trace certain group properties against a specialized database. [0037] Although systems are illustrated as including discrete components, these
components may be implemented in hardware, software/firmware, or some combination thereof. When implemented in hardware, some components of systems may be combined in a certain chip or device.
[0038] Although several exemplary implementations have been discussed, the claimed invention should not be limited to those explicitly mentioned, but instead should encompass any device or interface including more than one processor capable of processing, transmitting, outputting, or storing information. Processes may be implemented, for example, in software that may be executed by processors or another portion of local system. [0039] The foregoing description of one or more implementations consistent with the principles of the invention provides illustration and description, but is not intended to be exhaustive or to limit the scope of the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings or may be
1' acquired from practice of various implementations of the invention. [0040] No element, act, or instruction used in the description of the present application should be construed as critical or essential to the invention unless explicitly described as such. Also, as used herein, the article "a" is intended to include one or more items. Variations and modifications may be made to the above-described implementation(s) of the claimed invention without departing substantially from the spirit and principles of the invention. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Claims
1. A method for ray tracing, comprising: generating a group of rays; grouping parallel geometrical queries associated with the group of rays; extracting selected common geometrical characteristics pertinent for the whole group; and executing a query using only the selected characteristics and not the whole group against a spatially ordered geometrical database.
2. The method claimed in claim 1, wherein executing a query using only the selected characteristics and not the whole group against a spatially ordered geometrical database further comprises: finding and tracing selected group properties against a specialized database.
3. The method claimed in claim 1, wherein executing a query using only the selected characteristics and not the whole group against a spatially ordered geometrical database does not depend on the number of rays in the group.
4. The method claimed in claim 1 , wherein generating a group of rays further comprises: using anti-aliasing techniques to generate rays in areas of high geometrical complexity.
5. The method claimed in claim 1 , wherein using intervals representative of the group of rays during traversal process to generate exact or substantially exact intervals.
6. A machine-accessible medium including instructions that, when executed, cause a machine to: generate a group of rays; group parallel geometrical queries associated with the group of rays; extract selected common geometrical characteristics pertinent for the whole group; and execute a query using only the selected characteristics and not the whole group against a spatially ordered geometrical database.
7. The machine-accessible medium claimed in claim 6, wherein instructions to execute a query using only the selected characteristics and not the whole group against a spatially ordered geometrical database further comprises: instructions to find and trace selected group properties against a specialized database.
8. The machine-accessible medium claimed in claim 6, further comprising: instructions to execute a query using only the selected characteristics and not the whole group against a spatially ordered geometrical database does not depend on the number of rays in the group.
9. The machine-accessible medium claimed in claim 6, wherein instructions to generate a group of rays further comprises: instructions to use anti-aliasing techniques to generate rays in areas of high geometrical complexity.
10. The machine-accessible medium claimed in claim 6, further comprising: instructions to use intervals representative of the group of rays during traversal process to generate exact or substantially exact intervals.
11. A method for ray tracing, comprising: generating a group of rays having a common point of origin; computing minimum and maximum distances values among all projections of direction vectors on any given axis; defining inverse direction intervals representative of the group of rays; computing minimum and maximum distances to a split plane using inverse direction intervals; determining whether sub-cells in a split plane are traversed, comprising: modifying the interval and traversing only one sub cell if the minimum distance to the cell is more than the maximum distance to the plane or the maximum distance to the cell is less then the minimum distance to the plane.
12. The method claimed in claim 11, wherein modifying the interval and traversing only one sub cell if the minimum distance to the cell is more than the maximum distance to the plane or the maximum distance to the cell is less then the minimum distance to the
plane further comprises: in response to the minimum distance to the cell being more than maximum distance to the plane, modifying the interval and traversing only a first sub-cell.
13. The method claimed in claim 11, wherein modifying the interval and traversing only one sub cell if the minimum distance to the cell is more than the maximum distance to the plane or the maximum distance to the cell is less then the minimum distance to the plane further comprises: in response to the maximum distance to the cell being less than minimum distance to the plane, modifying the interval and traversing only a second sub-cell.
14. The method claimed in claim 11, further comprising: modifying intervals and traversing both sub cells if neither condition is met.
15. An apparatus, comprising: a database; and a controller for generating a group of rays, grouping parallel geometrical queries associated with the group of rays, extracting selected common geometrical characteristics pertinent for the whole group, and executing a query using only the selected characteristics and not the whole group against the spatially ordered geometrical database.
16. An system, comprising: a memory including a database; and a controller for generating a group of rays, grouping parallel geometrical queries associated with the group of rays, extracting selected common geometrical characteristics pertinent for the whole group, and executing a query using only the selected characteristics and not the whole group against the database.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/US2005/047701 WO2007081303A1 (en) | 2005-12-29 | 2005-12-29 | Applications of interval arithmetic for reduction of number of computations in ray tracing problems |
Publications (1)
Publication Number | Publication Date |
---|---|
EP1966766A1 true EP1966766A1 (en) | 2008-09-10 |
Family
ID=38256604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP05856151A Withdrawn EP1966766A1 (en) | 2005-12-29 | 2005-12-29 | Applications of interval arithmetic for reduction of number of computations in ray tracing problems |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP1966766A1 (en) |
CN (1) | CN101297325B (en) |
WO (1) | WO2007081303A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011137229A1 (en) * | 2010-04-29 | 2011-11-03 | Caustic Graphics, Inc. | Systems and methods for primitive intersection in ray tracing |
KR102193684B1 (en) * | 2013-11-04 | 2020-12-21 | 삼성전자주식회사 | Apparatus and method for processing ray tracing |
US11830124B2 (en) | 2021-09-24 | 2023-11-28 | Apple Inc. | Quantized ray intersection testing with definitive hit detection |
GB2612681B (en) | 2021-09-24 | 2024-01-31 | Apple Inc | Ray intersection testing with quantization and interval representations |
US11734871B2 (en) | 2021-09-24 | 2023-08-22 | Apple Inc. | Ray intersection testing with quantization and interval representations |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6429864B1 (en) * | 1999-11-10 | 2002-08-06 | Create.It Services Ag | Method for traversing a binary space partition or octree and image processor for implementing the method |
US6597359B1 (en) * | 2000-05-17 | 2003-07-22 | Raychip, Inc. | Hierarchical space subdivision hardware for ray tracing |
US6477221B1 (en) * | 2001-02-16 | 2002-11-05 | University Of Rochester | System and method for fast parallel cone-beam reconstruction using one or more microprocessors |
CN1410948A (en) * | 2002-09-23 | 2003-04-16 | 清华大学 | Real time light tracing method of non linear refraction and reflection on plane and spherical surfaces |
US7098907B2 (en) * | 2003-01-30 | 2006-08-29 | Frantic Films Corporation | Method for converting explicitly represented geometric surfaces into accurate level sets |
-
2005
- 2005-12-29 EP EP05856151A patent/EP1966766A1/en not_active Withdrawn
- 2005-12-29 WO PCT/US2005/047701 patent/WO2007081303A1/en active Application Filing
- 2005-12-29 CN CN200580051956.3A patent/CN101297325B/en not_active Expired - Fee Related
Non-Patent Citations (1)
Title |
---|
See references of WO2007081303A1 * |
Also Published As
Publication number | Publication date |
---|---|
CN101297325A (en) | 2008-10-29 |
WO2007081303A1 (en) | 2007-07-19 |
CN101297325B (en) | 2013-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7348975B2 (en) | Applications of interval arithmetic for reduction of number of computations in ray tracing problems | |
EP3714433B1 (en) | Ray-triangle intersection testing with tetrahedral planes | |
JP4858795B2 (en) | Instant ray tracing | |
Ernst et al. | Early split clipping for bounding volume hierarchies | |
AU2006261967B2 (en) | Real-time precision ray tracing | |
Muigg et al. | Interactive volume visualization of general polyhedral grids | |
CN111652908A (en) | Operation collision detection method for virtual reality scene | |
Sergey et al. | Fast ray casting of function-based surfaces | |
Evangelou et al. | Fast radius search exploiting ray-tracing frameworks | |
US20120075287A1 (en) | Image processing apparatus and method | |
EP1966766A1 (en) | Applications of interval arithmetic for reduction of number of computations in ray tracing problems | |
WO2008091958A2 (en) | Terminating spatial partition hierarchies by a priori bounding memory | |
Chao et al. | Improved hybrid bounding box collision detection algorithm | |
JP4947394B2 (en) | Simultaneous simulation of Markov chains using the quasi-Monte Carlo method | |
Xue et al. | Efficient rendering of large-scale CAD models on a GPU virtualization architecture with model geometry metrics | |
Zhdanov et al. | The backward photon mapping for the realistic image rendering | |
Pan et al. | A visibility-based surface reconstruction method on the GPU | |
Mandarapu et al. | Mochi: Fast\& Exact Collision Detection | |
Kunert et al. | Efficient point cloud rasterization for real time volumetric integration in mixed reality applications | |
Nowakiewicz | MST-Based method for 6DOF rigid body motion planning in narrow passages | |
GB2607350A (en) | Graphics processing | |
Biedert et al. | Direct Raytracing of Particle-based Fluid Surfaces Using Anisotropic Kernels. | |
Byrne et al. | Applications of the VOLA format for 3D data knowledge discovery | |
Liu et al. | A volumetric bounding volume hierarchy for collision detection | |
Sanjurjo et al. | Parallel global illumination method based on a nonuniform partitioning of the scene |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
17P | Request for examination filed |
Effective date: 20070726 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC NL PL PT RO SE SI SK TR |
|
17Q | First examination report despatched |
Effective date: 20090625 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 20110106 |