Skip to content

lonelywm/cuda_path_tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tag license avatar

CUDA Path Tracer

A tiny CUDA Path Tracer

Feature

  1. Build BVH-Box in parallel using Morton Code
  2. Expand 32-bit Morton Code to 64-bit
  3. No material implement, just use diffuse color
  4. Very fast compared to using CPU

How to build

mkdir build
cd build
cmake ..
cmake --build . --config Release

Time cost

Resolution SPP Max Reflection GPU Time
1024x1024 128 8 3060ti 29.5s
512x512 64 7 3060ti 3.7s
256x256 32 6 3060ti 0.4s

Compiler compatibility

MSVC >= 19.20

About

A tiny cuda path tracer

Resources

License

Stars

Watchers

Forks

Packages

No packages published