Results of
python3 main.py
in different lighting direction. )
世界是高维的,从来只有立场下的真相。任何事实都是取决于观测矩阵,总有些滤波和投影导致横看成岭侧成峰。 Reality is hidden in the projection and position.
Make sure your pip
is up-to-date:
pip3 install pip --upgrade
Assume you have a Python 3 environment, simply run:
pip3 install -r requirements.txt
to install the dependencies of the voxel renderer.
python3 main.py # example1/2/.../7/8.py
Mouse and keyboard interface:
- Drag with your left mouse button to rotate the camera.
- Press
W/A/S/D/Q/E
to move the camera. - Press
P
to save a screenshot.
This artwork is inspired by Shadow Art. The implementation is based on The Girl with a Voxel Earring and its related blog.