Unlock instant, AI-driven research and patent intelligence for your innovation.

SAH-KD-tree design method used for light ray tracking

A design method and ray tracing technology, applied in the field of data processing, can solve problems such as high computational complexity, inability to apply large scenes, and degradation of median selection efficiency, and achieve the effect of improving construction efficiency

Active Publication Date: 2018-06-15
CENT SOUTH UNIV +1
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In related technologies, in order to quickly and efficiently construct the SAH-KD tree used for ray tracing, one method is a serial construction method, and the simplest idea is to fully perform all division points on each node of the constructed SAH-KD tree Traversing to calculate the SAH value, its computational complexity is O(N 2 ), due to the high computational complexity, this method cannot be applied to large scenes; the other is the parallel construction method, which uses a high-performance thread to perform calculations on the upper-level large nodes until the calculation amount of each node is small enough, then the They are assigned to the construction idea of ​​the multi-core system. Although this method improves the construction efficiency of the SAH-KD tree, the efficiency of the median selection at the top layer is somewhat degraded when the algorithm is traversed, and there are different degrees of performance loss in super-large scenarios.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SAH-KD-tree design method used for light ray tracking
  • SAH-KD-tree design method used for light ray tracking
  • SAH-KD-tree design method used for light ray tracking

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0026] The present invention provides a SAH-KD tree design method for ray tracing, the SAH-KD tree design method for ray tracing of the present invention is a CPU / GPU hybrid programming SAH-KD tree construction method, making full use of GPU multi-core The characteristics of the SAH-KD tree are constructed using Breadth-First Search (BFS), and parallel calculations are performed based on each candidate division point of all nodes of the current level when each layer is constructed, and the CPU only synchronizes each result , give full play to the computing characteristics of the CPU and GPU itself, and improve the construction efficiency. At the same time, the space tree is used to efficiently calculate the SAH value. The space tree can keep the computational complexity of each GPU thread much smaller than the number of triangles of the current node in ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an SAH-KD-tree design method used for light ray tracking. The method includes: step S1, preprocessing all triangular surface slices of a current root node in nodes before construction of a SAH-KD tree is carried out; step S2, recursively constructing the SAH-KD tree according to layers, generating an ordered bounding box sequence of left and right child nodes of the currentnode, and calculating surface areas of three dimensions of a bounding box of each node of a current layer; step S3, obtaining, by solving, dimensions which are of the current nodes and need to be divided, generating a space tree and candidate division points of all the nodes of each layer, and calculating an SAH value corresponding to each candidate division point; and step S4, selecting a candidate division point, which corresponds to a smallest SAH value, to use the same as an optimal division point of the current nodes, and dividing the current node into two child nodes of a left and a right. Compared with the related art, the SAH-KD tree design method used for light ray tracking provided by the invention constructs the SAH-KD tree with good performance and high efficiency.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a SAH-KD tree design method for ray tracing. Background technique [0002] K-dimensional tree (KD tree) is a kind of balanced binary tree aligned with coordinate axes. It is a data structure commonly used for space division in K-dimensional space. It is widely used as an acceleration structure in graphics applications and query fields, such as ray tracing. Intersection detection between triangular faces and rays, nearest neighbor query, etc. The traversal cost of the KD tree has different calculation methods in different application fields. In ray tracing, it is necessary to calculate all the leaf nodes of the KD tree that each ray passes through. In order to achieve efficient traversal, the surface area heuristic partition method (SAH) is usually used during construction, and the partition point is selected by minimizing the intersection test complexity between the tria...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T15/06G06T17/00G06T17/20G06T1/20
CPCG06T1/20G06T15/06G06T17/005G06T17/20G06T2210/61
Inventor 廖胜辉李建锋谭耀华夏佳志郭璠赵于前邹北骥
Owner CENT SOUTH UNIV