Skip to content

Liby99/taichi

Repository files navigation



Taichi is a physically based computer graphics library, with various simulation and rendering algorithms supported (What's inside?). It's written in C++14 and wrapped friendly with Python.

Linux, Mac OS Windows Chat
Build Status Build Status Join the chat at https://gitter.im/taichi-dev/Lobby

Gallery (More...)

image image image

Installation

Step 1: Install Prerequisites

On Ubuntu 16.04

sudo apt-get install python3 git build-essential cmake make g++ libtbb-dev alien dpkg-dev debhelper ffmpeg python3-tk python3-pip

Install embree and tbb:

cd build
sudo sh ../install_embree.sh

On Arch Linux

sudo pacman -S python3 python-pip make cmake intel-tbb embree ffmpeg tk

Step 2:

Append to your ~/.bashrc:

export TAICHI_ROOT_DIR=/home/yuanming/repos/                  
export PYTHONPATH=$PYTHONPATH:$TAICHI_ROOT_DIR/taichi/python

Step 3:

Start taichi: (this will automatically install required python packages and build taichi.)

$ python3
>>> import taichi as tc
>>> ...

(Research Projects should be put into the folder projects, and will be automatically detected if the folder contains a CMakeLists.txt.)

View results

python3 python/examples/server/main.py 

Then open page http://localhost:1111. Choose a simulation output, press P to play, R to change frame rate (faster/slower).

Examples

Please see examples.

Acknowledgements

Taichi, like many other open-source projects, is based on other open-source projects:

Note that all of them are bundled in taichi (in source (header)/binary forms), and users do not have to manually install them.

About

Open Source Computer Graphics Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.0%
  • Python 10.0%
  • CMake 2.6%
  • JavaScript 0.9%
  • HTML 0.6%
  • Cuda 0.6%
  • Other 0.3%