https://github.com/potato3d/grid-rt
GPU-accelerated ray tracing using GLSL and CUDA
https://github.com/potato3d/grid-rt
cuda glsl gpu ray-tracing real-time-rendering
Last synced: 2 months ago
JSON representation
GPU-accelerated ray tracing using GLSL and CUDA
- Host: GitHub
- URL: https://github.com/potato3d/grid-rt
- Owner: potato3d
- License: mit
- Created: 2021-02-13T13:08:35.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T13:20:16.000Z (over 5 years ago)
- Last Synced: 2025-11-22T11:29:47.666Z (7 months ago)
- Topics: cuda, glsl, gpu, ray-tracing, real-time-rendering
- Language: C++
- Homepage:
- Size: 226 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grid-rt
GPU-accelerated ray tracing using GLSL and CUDA
Source code for the article [GPU-Accelerated Uniform Grid Construction for Ray Tracing](http://www.dbd.puc-rio.br/depto_informatica/09_14_ivson.pdf)
This repository implements the Qt ray-tracing application that uses the library from the [grid](https://github.com/potato3d/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](https://github.com/potato3d/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:

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

# Build
Visual Studio project files available in visualstudio directory.