Ray tracing in Python. My implementation of The Ray Tracer Challenge by Jamis Buck.
Examples assume iTerm with imgcat installed.
If imagecat is not installed, pipe output to a .ppm file instead of into imgcat, and open with macos Preview, or another program that supports PPM files (try IrfanView).
Before running examples, be sure to install the project:
$ poetry installpytracer examples/scene_reflection.yaml --width 1600 --height 800 |imgcatpytracer examples/transparency.yaml --width 1000 --height 500 | imgcat$ poetry run python examples/world_and_camera.py | imgcat$ poetry run python examples/canvas_to_ppm.py | imgcat





