charles-l / rayboi

a raytracer written in futhark/python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

a raytracer written in futhark/python

License:MIT License


Languages

Language:Futhark 46.4%Language:HTML 33.2%Language:Python 20.3%