Home

Awesome

Taichi Elements Build Status Code Coverage

Taichi elements is a high-performance multi-material continuum physics engine (work in progress).

Features:

<br><br><br>

Using taichi_elements in Python

<br>

Run demo with Python

<img src="https://github.com/yuanming-hu/public_files/raw/master/graphics/elements/demo_2d.gif"> <img src="https://github.com/taichi-dev/public_files/raw/master/taichi_elements/demo_3d_ggui.gif" style="zoom:40%;" /> <img src="https://raw.githubusercontent.com/taichi-dev/public_files/master/taichi_elements/sparse_mpm_active_blocks.gif" height="600px"> <br>

To simulate and render an example 3D scene with Python

python3 render_particles.py \
    -i ./path/to/particles \
    -b 0 -e 400 -s 1 \
    -o ./output \
    --gpu-memory 20 \
    -M 460 \
    --shutter-time 0.0 \
    -r 128

[Watch on YouTube] <img src="https://raw.githubusercontent.com/taichi-dev/public_files/master/taichi_elements/100Mparticles.jpg" height="600px">

https://user-images.githubusercontent.com/2309174/162767279-2ced8a2f-38bd-42d6-9bb8-a827144464ff.mp4

<br><br><br>

Using taichi_elements in Blender

<br>

Installing Taichi for Blender

(Not sure if it is the standard approach, but it works for now.)

import sys
print(sys.exec_prefix)

The output looks like /XXX/blender-2.81a-linux-glibc217-x86_64/2.81, which means python3 is located at /XXX/blender-2.81a-linux-glibc217-x86_64/2.81/python/bin/python3.7

<br>

Installing taichi_elements (experimental) for Blender