This is a simple path tracer written in pure python for the CPU. It supports the following features:
- Monte Carlo path tracing with Importance Sampling
- Parallel execution with the
multiprocessing
module - Lambertian diffuse surfaces
- Emissive materials
- Save path tracer state and resume remaining iterations later
- Live execution in
pygame
window or console
You can use conda
to setup the environment using the included environment.yml
file. The following commands will create the environment and run the included example.
conda env create -f environment.yml
conda activate pytracer-env
pip install .
cd examples/window
python main.py
This work is made available under the MIT License