Skip to content

charles-l/rayboi

Repository files navigation

rayboi

A raytracer/pathtracer implemented in Futhark (and a bit of Python).

render example

running the renderer

To run the renderer, build the code:

./futhark-nightly-linux-x86_64/bin/futhark pkg sync
./futhark-nightly-linux-x86_64/bin/futhark pyopencl rayboi.fut

Then run the progressive renderer shell:

pip install pyglet numpy
python debug_view.py

other notes

A lot of the code is based off of Sabastian Lague's very helpful video

Future improvements/projects:

  • Model loading
  • Texture mapping
  • Spatial partitioning with BVH
  • PBRT
  • ReSTIR (ref)