Real-Time KD-Tree Construction on Graphics Hardware

被引:286
作者
Zhou, Kun [1 ]
Hou, Qiming [2 ]
Wang, Rui [1 ]
Guo, Baining [2 ]
机构
[1] Zhejiang Univ, Hangzhou, Zhejiang, Peoples R China
[2] Tsinghua Univ, Beijing, Peoples R China
来源
ACM TRANSACTIONS ON GRAPHICS | 2008年 / 27卷 / 05期
关键词
kd-tree; programable graphics hardware; ray tracing; photon mapping; point cloud modeling;
D O I
10.1145/1409060.1409079
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present an algorithm for constructing kd-trees on GPUs. This algorithm achieves real-time performance by exploiting the GPU's streaming architecture at all stages of kd-tree construction. Unlike previous parallel kd-tree algorithms, our method builds tree nodes completely in BFS (breadth-first search) order. We also develop a special strategy for large nodes at upper tree levels so as to further exploit the fine-grained parallelism of GPUs. For these nodes, we parallelize the computation over all geometric primitives instead of nodes at each level. Finally, in order to maintain kd-tree quality, we introduce novel schemes for fast evaluation of node split costs. As far as we know, ours is the first real-time kd-tree algorithm on the GPU. The kd-trees built by our algorithm are of comparable quality as those constructed by off-line CPU algorithms. In terms of speed, our algorithm is significantly faster than well-optimized single-core CPU algorithms and competitive with multi-core CPU algorithms. Our algorithm provides a general way for handling dynamic scenes on the GPU. We demonstrate the potential of our algorithm in applications involving dynamic scenes, including GPU ray tracing, interactive photon mapping, and point cloud modeling.
引用
收藏
页数:11
相关论文
共 40 条
[1]  
[Anonymous], 2004, EUROGRAPH WORKSHOP R, DOI DOI 10.2312/EGWR/EGSR04/111-121
[2]  
[Anonymous], ANN LIB APPROXIMATE
[3]  
[Anonymous], P SIGGRAPH 03
[4]  
[Anonymous], 2001, THESIS CZECH TU PRAG
[5]  
Carr NA, 2006, PROC GRAPH INTERF, P203
[6]  
Carr NathanA., 2002, P ACM SIGGRAPHEUROGR, P37
[7]  
FOLEY T, 2005, GRAPHICS HARDWARE 05
[8]   AUTOMATIC CREATION OF OBJECT HIERARCHIES FOR RAY TRACING [J].
GOLDSMITH, J ;
SALMON, J .
IEEE COMPUTER GRAPHICS AND APPLICATIONS, 1987, 7 (05) :14-20
[9]  
Gropp W. D., 1994, Using MPI-Portable Parallel Programming with the Message -Parsing Interface
[10]  
HARRIS M, 2007, CUDPP HOMEPAGE