This is a simple raytracer written in Python. It is meant to be used as a reference for the course Numerical techniques for photorealistic image generation (AY2020-2021).
You need Python 3.8 or higher. To install the dependencies, run the following commands (possibly within a virtual environment):
pip install -r requirements.txt
To check that the code works as expected, you can run the suite of tests using the following command:
pytest
The program is run through the script main.py
. You can create an image with the following command:
./main.py render examples/demo.txt
Beware that it will take a very long time to produce the image!
To get command-line help, run
./main.py --help
Describe here the syntax used in the files. See examples/demo.txt
for an example.
See the file CHANGELOG.md.
The code is released under a MIT license. See the file LICENSE.md