Skip to content

mo-hanxuan/taichi-voxel-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-20220510163400401

image-20220510163430279image-20220510163553191

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/E to move the camera.
  • Press P to save a screenshot.

More examples

Releases

No releases published

Packages

No packages published

Languages