Coder Social home page Coder Social logo

taichi-unityexample's Introduction

Taichi-UnityExample

This repository demonstrates Taichi-Unity interopability with sample scenes.

๐Ÿ”ฅ The Unity examples are still in active development. Things can break sometimes but will be fixed real soon.

Prerequisites

If you have installed any recent version of Unity (2022.3.14 or above), this project is runnable out-of-the-box. You don't need to build taichi libraries because all the necessary native plugins are already included in Assets/Plugins, but in case you want to, consult taichi-dev/taichi and taichi-dev/taichi-unity2 for building manuals.

If you want to create another Unity Project with Taichi integration, you need to set your first-choice graphics API to Vulkan in Player Settings in Unity because currently Taichi C-API doesn't support other graphics APIs at the moment.

Packaging

You can head for File - Build Settings to configurate and package the game application. Currently the examples can only be build for Android and Windows PC using the Vulkan API. Please refer to Unity documentations for detail. Prebuilt releases could be found on the release page.

Content

This repository presents several demo scenes, each can be found in Assets/Scenes:

  • Fractal: A simple time-dependent texture generation kernel;
  • ImplicitFem: A physically-based soft-body simulation emitting vertex data on-the-flight.

Also note that the project can be built into Unity Player.

Notes for Android

Note that some player settings are changed for Android

  • Minimum version is changed to 26 (Android Oreo), which is the version the native libraries are compiled;
  • Scripting backend is switched to IL2CPP;
  • Library arch is set to ARM64, support for ARMv7 is canceled;
  • Default orientation is fixed portrait.

Problem and solution

We sorted out the problems you may encounter while running the demo, and will continue to add. You can find them at Build.md.

taichi-unityexample's People

Contributors

penguinliong avatar damnkk avatar feisuzhu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.