Implementation of progressive photon mapping parallel rendering based on cuda

Page 1

Transactions on Computer Science and Technology December 2014, Volume 3, Issue 4, PP.132-139

Implementation of Progressive Photon Mapping Parallel Rendering Based on CUDA Tianding Chen 1,2, Maoqian Li 1#, Qi Zhong 2 School of Information & Electronic Engineering, Zhejiang Gongshang University, Hangzhou 310018, China #

Email: limaoqian9267@163.com

Abstract It took a few hours to render high-quality images in complex scenes. So, it was a good choice using Graphics Processing Unit (GPU) accelerate the rendering process. We modified the implementation process of progressive photon algorithm, and let the algorithm runs entirely in the GPU by Compute Unified Device Architecture (CUDA) and ray tracing engine OptiX. So, we could take full advantage of the powerful parallel computing capabilities of GPU to accelerate the photon mapping implementation. Then we proposed the distributed rendering implementation of progressive photon mapping, while executing the improved progressive photon mapping implementation algorithms using multiple GPUs. The results show that the speedup increased to 5.7 after 1000 iterations rendering in six GPUs of distributed system, and it gets close to linear acceleration. Keywords: Progressive Photon Mapping; Parallel; Rendering; Compute Unified Device Architecture (CUDA); Graphic Processing Unit (GPU)

基于 CUDA 的渐进式光子映射并行渲染实现* 陈添丁 1,2,李茂前 1,钟琪 2 浙江工商大学 信息与电子工程学院,浙江 杭州 310018 摘 要:对于复杂场景的高质量图像渲染,可能需花费几个小时,而使用图形处理器(GPU)来加速渲染进程是一种很好 的选择。针对该问题,通过修改渐进式光子算法的实现过程,使得该算法能够通过统一设备计算架构(CUDA)和光线 追踪引擎 OptiX 完全运行在图像处理器(GPU)上;从而充分利用 GPU 强大的并行计算能力,加速光子映射的实现。并 提出了渐进式光子映射的分布式渲染实现方法,同时使用多个 GPU 高效率地执行改进的光子映射算法。实验结果证明了 采用分布式系统中 6 个 GPU 进行渲染,经过 1000 次迭代,加速比提高到 5.7,得到接近线性的加速。 关键词:渐进式光子映射;并行;渲染;统一设备计算架构;图像处理器

引言 一直以来,通过模拟光照行为来创建具有真实感的图形图像成为计算机图形学中最热门的话题,并且 基于物理模拟的相关全局光照(Global Illumination,GI)渲染技术也在不断发展[1],众所周知的有辐射度方 法[2]、光线追踪方法[3]、光子映射方法[4]以及渐进式光子映射方法。 渐进式光子映射算法解决了光子映射算法中的内存限制问题且更适合于 GPU 中实现。随着 GPU 的快速 发展,可以利用其强大的并行与计算能力,使得渐进式光子映射在 GPU 上并行实现,以加速渲染速率。 Purcell 于 2003 年[5]提出了基于 GPU 的光子映射实现方法。他使用了基于网格的光子图算法,其中将光 子排序为恰当的单元格。由于当时在 GPU 上执行排序计算较慢,采用了模具布线方法引导光子到达最终目 的地。 *

国家自然科学基金项目(No.61172172) ,浙江省教育厅基金项目(Y201223500,Y201432227) ,浙江省自然科学基金项目 (LQ12F01005) - 132 http://www.ivypub.org/cst


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Implementation of progressive photon mapping parallel rendering based on cuda by menez - Issuu