Home Artists Posts Import Register

Content

Check out the full video + extra screenshots on Dropbox 

I saw a video a while ago about vector fields and have wanted to experiment with them for a while. A vector field is a grid of arrows like this:

Each arrow represents a vector, which has a direction and a strength.

I then placed thousands of particles inside this grid, and moved them in the direction that the closest arrow is pointing. When a particle moves outside the grid, it's respawned at a random position inside the grid.

This creates some beautiful animations with pretty simple code:

GIFs may take a while to load


Multiple Fields

All the beauty lies in the velocity field generation code. I produced some funky results by overlaying multiple fields and blending them together.

The first field was a Curl field, which rotates particles around a point:


I then applied a Drift Field, which moves particles to the top-left:


Next was a Cos Field, which creates this ring-like pattern around a central point:


The last field is a Tan Field:


The final result is this futuristic-looking monstrosity:


High-quality videos and screenshots are available on Dropbox. The source code will be available to Optimiser Patrons soon.

Files