Multimedia Tools and Applications

, Volume 72, Issue 2, pp 1823–1839 | Cite as

Fast BVH construction and refit for ray tracing of dynamic scenes

  • Mingqiang YinEmail author
  • Shiqi Li


As the complexity of virtual environments increases, it becomes a critical issue to ray tracing of dynamic scenes interactively. In this paper, we propose an effective method to address this issue. Firstly, we improve the Surface Area Heuristics (SAH) based bounding volume hierarchies (BVHs) construction algorithm and present a sub-interval search criterion for predicting the optimal split plane position. Compared with the standard SAH approach, our algorithm is much faster but has a little quality degradation. Secondly, we present two new BVH refitting operations, which could run fast and obtain considerable quality of BVHs. The two operations are general and applicable to complex and dynamic scenes including a wide range of deformation. Lastly we use multithread to handle the dynamic scenes during animation, one thread for BVHs rebuilding asynchronously, the others for BVHs refitting and ray tracing. The results of this experiment show that our method is effective. Compared with the previous works, it obtains higher and smoother frame rate.


Animation Ray tracing BVHs Time complexity Dynamic scenes 



This research work has been partially supported by National High-tech Research & Development Program of China under Grant NO.2010AA804022.


  1. 1.
    Garanzha K (2008) Efficient clustered BVH update algorithm for highly-dynamic models. 2008 IEEE Symposium on Interactive Ray Tracing 2008, pp 123–130Google Scholar
  2. 2.
    Gui R, Graybill FA, Burdick RK, Ting N (1995) Confidence intervals on ratios of linear combinations for non-disjoint sets of expected mean squares. J Stat Plan Infer 48(2):215–227CrossRefzbMATHMathSciNetGoogle Scholar
  3. 3.
    Hanli Z, Wang CCL, Chen Y, Xiaogang J (2011) Parallel and efficient boolean on polygonal solids. Visual Comput 27(6–8):507–517Google Scholar
  4. 4.
    Hapala M, Havran V (2011) Review: kd-tree traversal algorithms for ray tracing. Comput Graph Forum 30(1):199–213CrossRefGoogle Scholar
  5. 5.
    Havran V, Herzog R, Seidel H-P (2006) On fast construction of spatial hierarchies for ray tracing. IEEE Symp Interact Ray Tracing 2006:71–80CrossRefGoogle Scholar
  6. 6.
    Hunt W, Mark WR, Stoll G (2006) Fast kd-tree construction with an adaptive error-bounded heuristic. IEEE Symp Interact Ray Tracing 2006:81–88CrossRefGoogle Scholar
  7. 7.
    Hurley J, Kapustin A, Reshetov A, Soupikov A (2011) Fast ray tracing for modern general purpose CPU. International Conference Graphicon 2002:209–218Google Scholar
  8. 8.
    Kun Z, Gong M, Huang X, Guo B (2010) Data-parallel octrees for surface reconstruction. IEEE Trans Vis Comput Graph 17(5):669–681Google Scholar
  9. 9.
    Kun Z, Qiming H, Rui W, Baining G (2008) Real-time kd-tree construction on graphics hardware. ACM Trans Graph 27(5):126–137Google Scholar
  10. 10.
    Lauterbach C, Yoon S, Tuft D (2006) RT-DEFORM: interactive ray tracing of dynamic scenes using BVHs. In: Proceedings of the 2006 IEEE Symposium on Interactive Ray Tracing, pp 39–45Google Scholar
  11. 11.
    MacDonald JD, Booth KS (1990) Heuristics for ray tracing using space subdivision. Vis Comput 6(3):152–163Google Scholar
  12. 12.
    Pina JL, Cerezo E, Seron F (2011) Semantic visualization of 3D urban environments. Multimed Tools Appl 59(2):505–521CrossRefGoogle Scholar
  13. 13.
    Stoll G, Part II: Achieving Real Time - Optimization Techniques (2005) In SIGGRAPH 2005 course on interactive ray tracingGoogle Scholar
  14. 14.
    Teschner M, Kimmerle S, Heidelberger B, Zachmann G, Raghupathi L, Fuhrmann A, Magnenat-Thalmann N, Strasser P, Volino P (2005) Collision detection for deformable objects. Comput Graph Forum 24(1):61–81Google Scholar
  15. 15.
    Wächter C, Keller A (2006) Instant ray tracing: the bounding interval hierarchy. In: Proceedings of the 17th Eurographics Symposium on Rendering, pp 132–142Google Scholar
  16. 16.
    Wald I, Boulos S, Shirley P (2007) Ray tracing deformable scenes using dynamic bounding volume hierarchies. ACM Trans Graph 26(6):25–32Google Scholar
  17. 17.
    Wald I, Havran V (2006) On building fast kd-trees for ray tracing and on doing that in O(nlogn). IEEE Symp Interact Ray Tracing 2006:61–69CrossRefGoogle Scholar
  18. 18.
    Wald I, Ize T, Kensler A, Knoll A, Parker S (2006) Ray tracing animated scenes using coherent grid traversal. ACM Trans Graph 25(3):485–493CrossRefGoogle Scholar
  19. 19.
    Wald I, Ize T, Parker SG (2008) Fast parallel and asynchronous construction of BVHs for ray tracing animated scenes. Comput Graph 32(1):3–13Google Scholar
  20. 20.
    Yoon SE, Crutis S, Manocha D (2007) Ray tracing dynamic scenes using selective restructuring. In: Proceedings of the Eurographics Symposium on Rendering, pp 31–45Google Scholar

Copyright information

© Springer Science+Business Media New York 2013

Authors and Affiliations

  1. 1.Huazhong University of Science & TechnologyWuhanChina

Personalised recommendations