Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyd405121/ti-voxel-challege
https://github.com/lyd405121/ti-voxel-challege
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lyd405121/ti-voxel-challege
- Owner: lyd405121
- Created: 2022-05-15T02:35:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-17T15:46:53.000Z (over 2 years ago)
- Last Synced: 2024-08-02T11:24:18.129Z (5 months ago)
- Language: Python
- Size: 910 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-taichi - You are not alone - Using SDF function to create a rabbit and other stuff. (Applications / **Voxel Art**)
- awesome-taichi - You are not alone - Using SDF function to create a rabbit and other stuff. (**Voxel Art**)
README
## Result
- This code is mainly using some [sdf function](https://iquilezles.org/articles/distfunctions2d/) to produce a rabbit and other stuff## Important
- This work is mainly inspired by an art work from [INFINITE JOURNEYS](https://www.bilibili.com/video/BV1rB4y1C7Zx?spm_id_from=333.880.my_history.page.click)
- The original author loves his wife who doing crochet about 10 years, which really touches me
- So this work is also a salute to the author## Installation
Make sure your `pip` is up-to-date:
```bash
pip3 install pip --upgrade
```Assume you have a Python 3 environment, simply run:
```bash
pip3 install -r requirements.txt
```to install the dependencies of the voxel renderer.
## Quickstart
```sh
python3 main.py # example1/2/3/.../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.