All the following instructions should be done from this directory.
conda create --name shadow-demo python=3.9.6
conda activate shadow-demo
pip install -r requirements.txt
If this step is not done, the displayed object will be a cube, but the shadows will still correspond to the lego model. Rendering the cube is much faster.
sh ../scripts/download_lego_model.sh
With cube model:
python demoShadows.py cube.obj
With lego model:
python demoShadows.py lego.obj