计算机应用 ›› 2014, Vol. 34 ›› Issue (6): 1591-1594.DOI: 10.11772/j.issn.1001-9081.2014.06.1591

• 先进计算 • 上一篇    下一篇

基于物理的分布并行光线追踪算法

张聪品,岳冬利   

  1. 河南师范大学 计算机与信息工程学院,河南 新乡 453007
  • 收稿日期:2013-11-11 修回日期:2014-01-02 出版日期:2014-06-01 发布日期:2014-07-02
  • 通讯作者: 张聪品
  • 作者简介:张聪品(1968-),女,河北衡水人,教授,博士,主要研究方向:计算机并行编译;岳冬利(1978-)女,河南焦作人,副教授,主要研究方向:语义Web、机器学习。

Distributed parallel algorithm of physically based ray tracing

ZHANG Congpin,YUE Dongli   

  1. Department of Computer and Information Engineering, Henan Normal University, Xinxiang Henan 453007, China
  • Received:2013-11-11 Revised:2014-01-02 Online:2014-06-01 Published:2014-07-02
  • Contact: ZHANG Congpin

摘要:

基于物理的光线追踪算法用于从三维场景模型生成逼真的二维图像,光线追踪渲染较为耗时,所以如何提高算法的效率成为研究热点。针对斯坦福大学经典的多线程光线追踪引擎——PBRT,考虑任务划分粒度和负载均衡等因素,基于两级任务划分体系,提出了动态自适应分布式并行光线追踪算法。实验中在保证高质量图像生成的前提下,使用80个CPU核时,改进算法比PBRT原算法获得了近乎线性的加速比。实验结果表明改进算法具有良好的效率和扩展性,能够有效地用于光线追踪成像,提高光线追踪成像效率。

Abstract:

Ray tracing is a technique for image synthesis: creating a photorealistic picture of a 3-D world. But the technique tends to be a time-consuming process, and how to decrease the expensive computational cost has become a hotspot. Considering the factors of task partition and load balance, with the two levels of task partition method, a new dynamically self-adaptive distributed ray tracing algorithm was developed to enhance the efficiency of ray tracing based on Physically Based Ray Tracing (PBRT), which is a famous ray tracing framework from Stanford University. When using CPU cores to 80 in experiment, the corresponding speedup of the proposed algorithm versus the original PRBT algorithm reached to a perfect value, which is close to theoretic linear speedup. It shows that the proposed algorithm is effective and highly scalable with respect to PBRT. The proposed method can be applied to ray tracing process effectively to accelerate the efficiency of rendering.

中图分类号: