r/taichi_lang • u/TaichiOfficial • Nov 24 '22
r/taichi_lang • u/TaichiOfficial • Nov 28 '22
Demo A selected community project: An FEM (finite element method) solver for structural analysis in continuum mechanics
r/taichi_lang • u/TaichiOfficial • Nov 25 '22
Demo A 10k-particle comet simulation, completed within 100 lines of Python code
r/taichi_lang • u/TaichiOfficial • Nov 25 '22
Demo A classic Cornell box scene: Ray tracing rendered in Python and accelerated by Taichi
r/taichi_lang • u/mingrui-zhang • Nov 25 '22
Demo I implemented an SPH simulator in Taichi (1/2). Dragon Bath demo: ~420 K particles, ~280 FPS on RTX 3090 GPU, with timestep 4e-4
r/taichi_lang • u/neozhaoliang • Nov 22 '22
Resources Beginner thread: Useful resources!
Some useful references to get started:
Taichi Lang GitHub: https://github.com/taichi-dev/taichi
Official website: https://www.taichi-lang.org/
Docs: https://docs.taichi-lang.org/
Taichi Cheatsheet: https://github.com/taichi-dev/cheatsheet

Awesome Taichi repo: https://github.com/taichi-dev/awesome-taichi
Have trouble with installation and getting started? Leave your questions in this thread👇
r/taichi_lang • u/TaichiOfficial • Dec 01 '22
Resources Taichi CFD repo: A collection of CFD (computational fluid dynamics) related resources for Taichi developers
r/taichi_lang • u/TaichiOfficial • Nov 25 '22
Demo A PBF simulation: Implement neighboring particle search acceleration and fluid surface reconstruction in Taichi
r/taichi_lang • u/TaichiOfficial • Apr 18 '23
Taichi v1.5.0 Released! See what's new👇
Taichi Runtime (TiRT) now supports Apple's Metal API and OpenGL ES for compatibility on old mobile platforms.
Taichi AOT fully supports float16 data type.
Out of bound check is now supported on ndarrays
Python frontend: LLVM-based backend (CPU and CUDA) now supports returning structs, including nested structs containing vectors and matrices.
CUDA backend has optimized atomic operations for half2 floating-point type.
GGUI backend now supports Metal, OpenGL, AMDGPU, DirectX 11, CPU, and CUDA.
Check our the realease note (https://github.com/taichi-dev/taichi/releases) for more improvements.
r/taichi_lang • u/TaichiOfficial • Nov 24 '22
Demo A Karman vortex street simulation based on the Lattice Boltzmann method (within 200 lines of code)
r/taichi_lang • u/TaichiOfficial • Feb 02 '23
Demo Cornell Box: 139 lines of Python code, based on Monte Carlo path tracing
r/taichi_lang • u/TaichiOfficial • Nov 29 '22
Demo Taichi user theAfish simulates a non-rotating Schwarzschild black hole and its accretion disk via ray marching. Semi-implicit Euler method is used and general relativity involved to simulate the light paths. See source code: https://github.com/theAfish/BlackHoleRayMarching/blob/master/main.py
r/taichi_lang • u/TaichiOfficial • Nov 30 '22
Resources Taichi Elements: A high-performance multi-material continuum physics engine. Supports sparse grids and (virtually) infinitely large simulation domains
r/taichi_lang • u/TaichiOfficial • Dec 06 '22
tutorial [SIGGRAPH Asia 2022 presentation] Playing with Your Data: A High-performance Programming Guide with the Taichi Programming Language
Taichi senior scientist and developer Tiantian Liu presented the Taichi-aided data arrangement for high-performance applications at SIGGRAPH Asia 2022.
This course provides an advanced programming guide to organizing data for high-performance applications using Taichi. In this course, we dig into the structural node (SNode) system in Taichi and exercise different memory layouts for both dense and sparse data structures. We also cover the optimization hints to keep wanted data attributes in shared memory for both structured grids and unstructured meshes. Moreover, we walk through the quantized data types in Taichi, which supports high-resolution simulations with limited memory consumption. Along with the course, we demonstrate various algorithms such as stable fluids, MLS-MPM, and Projective Dynamics implemented in Taichi and play with their underlying data structures. We hope this course will emphasize the importance of data in high-performance computer graphics tasks and reduce the engineering burden of testing different data types and memory layouts from programmers.
View the full course on youtube: https://www.youtube.com/watch?v=WNh4Q7-OSJs
Course PDF: http://tiantianliu.cn/courses/liu2022playing/liu2022playing.pdf
r/taichi_lang • u/TaichiOfficial • Dec 23 '22
Demo A Taichi frontend for Rust
Project rtaichi provides a Taichi frontend for Rust. Having translated the Rust syntax tree of an attributed function into Python script via procedural macro (https://doc.rust-lang.org/book/ch19-06-macros.html#procedural-macros-for-generating-code-from-attributes), the project runs the script to build an AOT module archive at compile time. Subsequently, a new Rust function body is generated to lazily load AOT, execute the computational graph, bind parameters, and launch the kernel, offering CUDA-like development experience.
Project repo: https://github.com/PENGUINLIONG/rtaichi
r/taichi_lang • u/TaichiOfficial • Feb 06 '23
Demo SDF bunny rendered in Taichi: rendering speed 5x faster than in Blender
r/taichi_lang • u/TaichiOfficial • Dec 28 '22
tutorial GPU-Accelerated Collision Detection and Taichi DEM Optimization Challenge
Collision detection of a large number of particles often imposes an algorithmic bottleneck. A commonly-used technique to reduce the time complexity of collision detection is grid-based neighborhood search, which confines the search for collision-prone particles to a small area. This blog demonstrates how to implement collision detection in Taichi based on a minimal DEM model and accelerate neighborhood search effectively with clever use of Taichi data structures.
The complete code is available at https://github.com/taichi-dev/taichi_dem – the key part of the acceleration algorithm is completed in less than 40 lines of code.
r/taichi_lang • u/TaichiOfficial • Dec 07 '22
Demo Taichi Hackathon 1st prize winner: A real-time ray tracing renderer with physically based rendering and signed distance fields
r/taichi_lang • u/TaichiOfficial • Nov 24 '22
Demo An SDF renderer implemented with 170 lines of Python code
r/taichi_lang • u/TaichiOfficial • Jan 05 '23
Demo DEM simulation of Stanford bunny, visualized in Houdini
r/taichi_lang • u/TaichiOfficial • Jan 10 '23
Demo Process images with circle packing
r/taichi_lang • u/TaichiOfficial • May 19 '23
Demo Using Taichi to accelerate native Python code of DE algorithm
r/taichi_lang • u/TaichiOfficial • Feb 24 '23
Demo A game prototype developed in Taichi Soft2D, a 2D real-time multi-material physics engine for GPU-accelerated simulation. Basic features include fluid emitters & kinematic colliders
r/taichi_lang • u/TaichiOfficial • Dec 15 '22
Demo Project Tiouch: A combination of physical simulation and haptic rendering (using Taichi, Unity, and Touch Haptic Device)
Project Tiouch takes advantage of Taichi's high performance in physical simulation and innovatively augments stunning physical effects created with haptic rendering, blurring the line between virtuality and reality.
The soft bodies in the scene were modeled based on shape matching constraints and position based dynamics (PBD). Taichi kernels were deployed to Unity thanks to the AOT module, and Taichi runtime was built in Unity via Taichi's C API and Unity Plugin.
taichi-aot-demo and Taichi-Unity Example provide valuable references.
r/taichi_lang • u/TaichiOfficial • Nov 22 '22
Demo Taichi & image processing: Implement local tone mapping in Taichi
HDR images normally need to be processed into a low dynamic range to be displayed on traditional devices; otherwise, loss of details causes under/overexposure. A technique called tone mapping is often applied to adjust the brightness of pixels.
The demo above implements a bilateral grid for tone mapping in Taichi. Save the source code and run it on your machine. You can adjust the parameters at your will and find the best settings when the highlights and shadows are most vividly presented. There is also a detailed explanation of the implementation steps: https://docs.taichi-lang.org/blog/how-taichi-fuels-gpu-accelerated-image-processing-a-beginner-to-expert-guide#application-real-time-local-tone-mapping-hdr-effect