Installing Photon Mapping tools

Installing from sources

Before starting to install the Photon Mapping tools, you should first install all dependencies in a conda environment. The simplest way to do this is to call

conda env create -f environment.yml

You have to activate the conda environment before installing

conda activate photonmap

To install the others dependencies

pip install pgljupyter

To install as a Python library:

pip install ./

To run test

The main example is located in the folder ./examples/python/plantgl-rad-scene

conda activate photonmap
cd examples/python/plantgl-rad-scene

Command to run the example

python planglRadScene.py

To run the Jupyter Notebook

We have to install the dependencies first. Here is pgljupyter

conda activate photonmap
pip install pgljupyter

Here is the command to run the Jupyter notebook

cd examples/python/plantgl-rad-scene
jupyter notebook