Home

Awesome

<a name="title">Taichi Voxel Challenge</a>

Blog for pac man and foreness: https://blog.bj-yan.top/p/blog-taichi-voxel-challenge-2022/

Blog for pvz: https://blog.bj-yan.top/p/blog-taichi-voxel-challenge-2022-pvz/

Voxel Pac-man in pac-man.py

<p align="center"> <img src="images/demo-pac-man-1.jpg" width="75%"></img> </p> <p align="center"> <img src="images/demo-pac-man-2.jpg" width="75%"></img> </p>

Voxel Foretress in fortress.py

<p align="center"> <img src="images/demo-fortress-1.jpg" width="75%"></img> </p> <p align="center"> <img src="images/demo-fortress-2.jpg" width="75%"></img> </p>

Voxel PVZ in pvz.py

<p align="center"> <img src="images/demo-pvz-1.jpg" width="75%"></img> </p> <p align="center"> <img src="images/demo-pvz-2.jpg" width="75%"></img> </p>

We invite you to create your voxel artwork, by putting your Taichi code in main.py!

Rules:

The available APIs are:

Remember to call scene.finish() at last.

Taichi lang documentation: https://docs.taichi.graphics/

Modifying files other than main.py is not allowed.

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 example1.py  # example2/3/.../7/8.py

Mouse and keyboard interface:

More examples

<a href="https://github.com/raybobo/taichi-voxel-challenge"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/city.jpg" width="45%"></img></a> <a href="https://github.com/victoriacity/voxel-challenge"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/city2.jpg" width="45%"></img></a> <a href="https://github.com/yuanming-hu/voxel-art"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/tree2.jpg" width="45%"></img></a> <a href="https://github.com/neozhaoliang/voxel-challenge"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/desktop.jpg" width="45%"></img></a> <a href="https://github.com/maajor/maajor-voxel-challenge"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/earring_girl.jpg" width="45%"></img></a> <a href="https://github.com/rexwangcc/taichi-voxel-challenge"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/pika.jpg" width="45%"></img></a> <a href="https://github.com/houkensjtu/qbao_voxel_art"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/yinyang.jpg" width="45%"></img></a> <a href="https://github.com/ltt1598/voxel-challenge"><img src="https://github.com/taichi-dev/public_files/blob/master/voxel-challenge/lang.jpg" width="45%"></img></a>

Show your artwork

Please put your artwork at the beginning of this README file. Replacing the demo.jpg file with your creation will do the job.