Skip to content

CUDA Ray TracerHigh-Performance GPU Ray Tracer

A technical whitepaper on real-time ray tracing with CUDA, featuring BVH acceleration, Monte Carlo path tracing, and warp divergence optimization

Technical Highlights

Quick Start

Build and run your first render in 5 minutes
# Clone the repository
git clone https://github.com/AICL-Lab/ray-tracer.git
cd ray-tracer

# Build (requires CUDA 12+)
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)

# Render (Phong shading)
./build/bin/ray_tracer -o output.ppm

# Render (Path tracing)
./build/bin/ray_tracer --mode path-trace --samples 128 -o output.ppm

Performance Benchmarks

Tested on NVIDIA RTX 3080

<1s
Phong 800×600
10-100×
BVH Speedup
20-40%
Ray Sorting Gain
4K
Max Resolution

Documentation

Technical Whitepaper · Built with VitePress