Skip to content

GPU-accelerated ray tracing using GLSL and CUDA

License

Notifications You must be signed in to change notification settings

potato3d/grid-rt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grid-rt

GPU-accelerated ray tracing using GLSL and CUDA

Source code for the article GPU-Accelerated Uniform Grid Construction for Ray Tracing

This repository implements the Qt ray-tracing application that uses the library from the grid repository.

Description

We trace one ray per GPU thread through a uniform grid spatial acceleration structure using a 3D-DDA algorithm. We have two implementations for the ray tracing: GLSL-based and CUDA-based. At the time, the GLSL implementation was about 30% faster. Please check the companion project grid for the implementation of the GPU-based uniform grid construction.

The GLSL ray tracing implementation is in include/rtgl and src/rtgl directories.

The CUDA ray tracing implementation is in include/rtc and src/rtcuda directories.

This project also includes CPU-based ray tracing routines in include/rt, include/rtp, src/rtcore and src/rtplugins directories. Also includes CPU-based optimized kd-tree construction and traversal routines.

Please check the paper reference above for more implementation details.

Examples

These are some images generated with our algorithm for benchmark animated scenes:

scenes

These are the results in performance, compared to state of the art:

speed

Build

Visual Studio project files available in visualstudio directory.

About

GPU-accelerated ray tracing using GLSL and CUDA

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published