This Monte Carlo raytracer (path tracer) is a versatile implementation of Peter Shirley Ray Tracing in One Weekend Book Series which uses Python as the interface for the scene description.
The Python interface and coding-style is based on sightpy , my readable, and easy-to-use Python raytracer. But unlike it, the core of this raytracer is written in C++ and therefore focuses in rendering the scenes as fast as possible. Also, I implemented multithreading, so the images are efficiently rendered in parallel.
Just clone or download this repo and run:
python setup.py build_ext --inplace
You need to have a C++ compiler installed on your computer in order to run this command successfully.
See the examples to see how to render the following images:
python example1.py
python example2.py