https://github.com/charles-l/rayboi
a raytracer written in futhark/python
https://github.com/charles-l/rayboi
futhark numpy pathtracing python3 raytracing
Last synced: 2 months ago
JSON representation
a raytracer written in futhark/python
- Host: GitHub
- URL: https://github.com/charles-l/rayboi
- Owner: charles-l
- License: mit
- Created: 2021-02-13T20:06:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-15T16:24:53.000Z (about 3 years ago)
- Last Synced: 2025-08-08T12:52:30.988Z (11 months ago)
- Topics: futhark, numpy, pathtracing, python3, raytracing
- Language: Futhark
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rayboi
A raytracer/pathtracer implemented in Futhark (and a bit of Python).

## 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](https://www.youtube.com/watch?v=Qz0KTGYJtUk)
Future improvements/projects:
* Model loading
* Texture mapping
* Spatial partitioning with [BVH](https://raytracing.github.io/books/RayTracingTheNextWeek.html)
* [PBRT](http://www.pbr-book.org/3ed-2018/contents.html)
* ReSTIR ([ref](https://www.youtube.com/watch?v=gsZiJeaMO48))