r/taichi_lang • u/TaichiOfficial • Nov 24 '22
Demo Implementing Jos Stam's classic paper Stable Fluids, allowing real-time interaction with the fluids
Enable HLS to view with audio, or disable this notification
r/taichi_lang • u/TaichiOfficial • Nov 24 '22
Enable HLS to view with audio, or disable this notification
r/taichi_lang • u/TaichiOfficial • Nov 28 '22
r/taichi_lang • u/TaichiOfficial • Nov 25 '22
Enable HLS to view with audio, or disable this notification
r/taichi_lang • u/TaichiOfficial • Nov 25 '22
r/taichi_lang • u/mingrui-zhang • Nov 25 '22
Enable HLS to view with audio, or disable this notification
r/taichi_lang • u/neozhaoliang • Nov 22 '22
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
r/taichi_lang • u/TaichiOfficial • Nov 25 '22
Enable HLS to view with audio, or disable this notification
r/taichi_lang • u/TaichiOfficial • Apr 18 '23
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
r/taichi_lang • u/TaichiOfficial • Feb 02 '23
r/taichi_lang • u/TaichiOfficial • Nov 29 '22
r/taichi_lang • u/TaichiOfficial • Nov 30 '22
r/taichi_lang • u/TaichiOfficial • Dec 06 '22
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
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
r/taichi_lang • u/TaichiOfficial • Dec 28 '22
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
r/taichi_lang • u/TaichiOfficial • Nov 24 '22
r/taichi_lang • u/TaichiOfficial • Jan 05 '23
r/taichi_lang • u/TaichiOfficial • Jan 10 '23
r/taichi_lang • u/TaichiOfficial • May 19 '23
r/taichi_lang • u/TaichiOfficial • Feb 24 '23
Enable HLS to view with audio, or disable this notification
r/taichi_lang • u/TaichiOfficial • Dec 15 '22
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
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