Figure: result of
main.py
.
We invite you to create your voxel artwork, by putting your Taichi code in main.py
!
Refer to taichi voxel challenge for more info.
We use polyhedrons and ellipses as basic building blocks.
- polyhedron: defined by several planes, each plane defined by plane normal (pointed to the outside of polyhedron) and a point on this plane
- ellipse: defined by center, three axises (with lengths) and orientation (where the orientation is defined by rotation axis and rotation angle of counter-clockwise)
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_pyramids_sphinx.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.