项目作者: apc-llc

项目描述 :
Intercomparison of two simple raytracers: pure CUDA and OptiX
高级语言: C++
项目地址: git://github.com/apc-llc/ray_tracing.git
创建时间: 2014-11-07T19:38:32Z
项目社区:https://github.com/apc-llc/ray_tracing

开源协议:

下载


Simple Ray Tracing engine in CUDA and OptiX

sample.jpg

Prerequisites

  • Each version of OptiX works only starting from specific version of CUDA. We’ve tested CUDA 6.5 with OptiX 3.7.0.

Building

Use central makefile to build both cuda and optix versions:

  1. $ git clone https://github.com/apc-llc/ray_tracing.git
  2. $ cd ray_tracing
  3. $ make

Comparing CUDA and OptiX

Frontend tool ray_tracing_compare invokes CUDA and OptiX versions on the same randomly generated scene:

  1. $ make compare
  2. ./ray_tracing_compare 10 2 1920 1080 output.bmp
  3. CUDA ray tracing time: 12.52 milliseconds
  4. OptiX ray tracing time: 232.49 milliseconds

Output scene will be rendered to output.bmp in cuda and optix subfolders, respectively.