Giter VIP home page Giter VIP logo

swarm's Introduction

Swarm

Swarm is an experimental project that tries to find an interesting way of utilizing the procedural instancing feature that was newly introduced in Unity 5.6.

There are two types of renderers in Swarm.

Swirling Swarm

screenshot screenshot

Swirling Swarm simulates particle motion within a divergence-free noise field and draws trace lines along it. The simulation is reset in every frame, but the noise field keeps moving slowly, so that it gives the impression that the swirls are slowly moving around and changing their shapes.

Crawling Swarm

screenshot screenshot

The basic concept of Crawling Swarm is the same to Swirling Swarm; it simulates particle motion within a noise field, but it's constrained with a distance field volume. It tries to keep distances between the particles and the object surface as low as possible. It gives the feeling that the lines are crawling around on the surface and cover it.

System Requirements

  • Unity 5.6 or later

Swarm only runs on the platforms that support compute shaders and GPU instancing.

License

MIT

swarm's People

Contributors

keijiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swarm's Issues

Compile script error on mac

Hey Keijiro,

I did encounter an error while trying to run the swarm project. Not sure if it's a general unity3d error but I do get it on all 3 swarm script files.

UnityEngine.Graphics' does not contain a definition for DrawMeshInstancedIndirect'

I'm have deadens trying to resolve that. It seems like Graphics doesn't load DrawMeshInstancedIndirect, is that a general mac support issue or is it bug in unity?

Appreciate your projects and thanks for your time.

What's _UniqueID?

In the project you created a Material Property Block and SetFloat("_UniqueID", Random.Value) to it. Is the _UniqueID the instance unique ID? Why do you need to set this value?

Swarms become invisible

Hi there,

I am encountering issues with the swarms becoming invisible to my camera at certain points when my scene is running. I am animating the swarms and moving them around. Have you dealt with this issue before?

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.