Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active June 1, 2017 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/4c2fe3d6b48b7e1a85abae5da453f0da to your computer and use it in GitHub Desktop.
Save keijiro/4c2fe3d6b48b7e1a85abae5da453f0da to your computer and use it in GitHub Desktop.

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 shape.

Crawling Swarm

screenshot screenshot

The basic concept of Crawling Swarm is 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment