Pyramids & Sphinx (Taichi Voxel Challenge)
May 10, 2022 ยท View on GitHub


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.
how to create the pyramids and the Sphinx
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)
Installation
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.
Quickstart
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/Eto move the camera. - Press
Pto save a screenshot.







