DocumentCode
3232271
Title
Fast kd-tree Construction with an Adaptive Error-Bounded Heuristic
Author
Hunt, Warren ; Mark, William R. ; Stoll, Gordon
Author_Institution
Texas Univ., Austin, TX
fYear
2006
fDate
18-20 Sept. 2006
Firstpage
81
Lastpage
88
Abstract
Construction of effective acceleration structures for ray tracing is a well studied problem. The highest quality acceleration structures are generally agreed to be those built using greedy cost optimization based on a surface area heuristic (SAH). This technique is most often applied to the construction of kd-trees, as in this work, but is equally applicable to the construction of other hierarchical acceleration structures. Unfortunately, SAH-optimized data structure construction has previously been too slow to allow per-frame rebuilding for interactive ray tracing of dynamic scenes, leading to the use of lower-quality acceleration structures for this application. The goal of this paper is to demonstrate that high-quality SAH based acceleration structures can be constructed quickly enough to make them a viable option for interactive ray tracing of dynamic scenes. We present a scanning-based algorithm for choosing kd-tree split planes that are close to optimal with respect to the SAH criteria. Our approach approximates the SAH cost function across the spatial domain with a piecewise quadratic function with bounded error and picks minima from this approximation. This algorithm takes full advantage of SIMD operations (e.g., SSE) and has favorable memory access patterns. In practice this algorithm is faster than sorting-based SAH build algorithms with the same asymptotic time complexity, and is competitive with non-SAH build algorithms which produce lower-quality trees. The resulting trees are almost as good as those produced by a sorting-based SAH builder as measured by ray tracing time. For a test scene with 180 k polygons our system builds a high-quality kd-tree in 0.26 seconds that only degrades ray tracing time by 3.6% compared to a full quality tree
Keywords
computational complexity; function approximation; greedy algorithms; ray tracing; tree data structures; SAH-optimized data structure construction; SIMD operations; adaptive error-bounded heuristic; asymptotic time complexity; cost function; dynamic scenes; greedy cost optimization; interactive ray tracing; kd-tree construction; memory access patterns; piecewise quadratic function; sorting-based SAH build algorithms; surface area heuristic; Acceleration; Computer graphics; Cost function; Data structures; Degradation; Layout; Ray tracing; System testing; Time measurement; Tree graphs; approximation; error; heuristic; kd-tree;
fLanguage
English
Publisher
ieee
Conference_Titel
Interactive Ray Tracing 2006, IEEE Symposium on
Conference_Location
Salt Lake City, UT
Print_ISBN
1-4244-0693-5
Type
conf
DOI
10.1109/RT.2006.280218
Filename
4061549
Link To Document