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

A sah-kd tree design method for ray tracing

A design method and ray tracing technology, applied in the field of data processing, can solve the problems of high computational complexity, degradation of median selection efficiency, performance loss of super-large scenes, etc., to achieve the effect of improving construction efficiency

Active Publication Date: 2021-12-10
CENT SOUTH UNIV +1
View PDF9 Cites 0 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
  • A sah-kd tree design method for ray tracing
  • A sah-kd tree design method for ray tracing
  • A sah-kd tree design method for ray tracing

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 present invention provides a SAH-KD tree design method for ray tracing, comprising: step S1, before performing the construction of the SAH-KD tree, preprocessing all triangle faces of the current root node in the node ; Step S2, recursively constructing the SAH-KD tree hierarchically, generating an ordered bounding box sequence of the left and right child nodes of the current node, and calculating three dimensions of the bounding box of each node at the current level surface area; step S3, find out the dimensions that the current node needs to divide, generate the space tree and candidate division points of all the nodes in each layer, and calculate the SAH value corresponding to each candidate division point; step S4, select the minimum The candidate division point corresponding to the SAH value is used as the optimal division point of the current node, and the current node is divided into left and right child nodes. Compared with related technologies, the SAH-KD tree constructed by the SAH-KD tree design method for ray tracing provided by the present invention has 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 Patents(China)
IPC IPC(8): G06T15/06G06T17/00G06T17/20G06T1/20
CPCG06T1/20G06T15/06G06T17/005G06T17/20G06T2210/61
Inventor 廖胜辉李建锋谭耀华夏佳志郭璠赵于前邹北骥
Owner CENT SOUTH UNIV