프로젝트
GitHub에서 보기 Taichi Elements
Using



Using
taichi-dev/taichi_elements
소개
Taichi로 구현된 고성능 다중 재료 연속체 물리 엔진
과학 및 공학What you can do
- Cross-platform: Windows, Linux, and OS X
- Supports multi-threaded CPUs and massively parallel GPUs
- Supports multiple materials, including water, elastic objects, snow, and sand
- Supports (virtually) infinitely large simulation domains
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTaichi Elements

Taichi elements is a high-performance multi-material continuum physics engine (work in progress).
Features:
- Cross-platform: Windows, Linux, and OS X
- Supports multi-threaded CPUs and massively parallel GPUs
- Supports multiple materials, including water, elastic objects, snow, and sand
- Supports (virtually) infinitely large simulation domains
- Supports sparse grids
- Highly efficient and scalable, especially on GPUs
Using taichi_elements in Python
Run demo with Python
- Install taichi with
pip:python3 -m pip install taichi - Execute
python3 download_ply.pyto download model files used by the demos - Execute
python3 demo/demo_2d.pyand you will see

- Execute
python3 demo_3d.pyand you will see a 3D simulation visualized in 2D - Execute
python3 demo_3d_ggui.pyand you will see a 3D simulation rendered with GGUI. Note that GGUI requires Vulkan so please make sure your platform supports that.

- Execute
python3 demo/demo_2d_sparse_active_blocks.pyto get a visual understanding of Taichi sparse computation

To simulate and render an example 3D scene with Python
- Make sure you have a modern NVIDIA GPU (e.g. GTX 1080)
- Execute
python3 download_ply.pyto download model files - Run
python3 demo/demo_3d_letters.py(wait for at least 10 frames)- A binary particle folder with a timestamp in its time (e.g.,
sim_2020-07-27_20-55-48) will be created under the current folder.
- A binary particle folder with a timestamp in its time (e.g.,
- Example:
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
- Images are in the
output/folder. For example, 100 million MPM particles simulated in 8 hours on a V100 GPU:
- Here is a one-billion-particle simulation on a GPU with
80GB memory. Each particle takes 40 bytes, thanks to quantization.
https://user-images.githubusercontent.com/2309174/162767279-2ced8a2f-38bd-42d6-9bb8-a827144464ff.mp4
Using taichi_elements in Blender
Installing Taichi for Blender
(Not sure if it is the standard approach, but it works for now.)
- Install Blender
3.4.1 - Find the Python3 executable bundled in Blender. Open a console in Blender and type in
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
- Install pip using that Python executable
- Install Taichi:
./python3.7m -m pip install --upgrade taichi(Note: as of Oct 8 2021, Taichi version isv0.8.1. Please use the latest version.)
Installing taichi_elements (experimental) for Blender
- Set the environment variable
BLENDER_USER_ADDON_PATH, e.g./home/XXX/.config/blender/2.81/scripts/addons - Go to
utilsfolder - Execute
python3 install_blender_addon.pyto install the addon- If you are doing development and wish to keep refreshing the installed addon, add an argument
-k.
- If you are doing development and wish to keep refreshing the installed addon, add an argument
- Restart Blender to reload the addon
관련 프로젝트 살펴보기
불러오는 중…
