This is an upgrade on my previous flowfield particles. This new version runs entirely on the GPU, using the newly released GL3 package in Max8. The jit.gl.bfg object is used to generate a 2 dimensional noise pattern used as the vectorfield. The pixel value determines the direction of the flow when a particle moves over that position in the field. The particles are rendered through the use of the new jit.gl.tf and jit.gl.buffer objects. A glsl-shader program calculates the next position for each particle, and the particles are drawn using a mesh. The convergence value determines how much force the flowfield will provide to the velocity of the particle to change it’s direction. A value of 0 means the field has no effect on the particle. Higher values will result in more clusters of particles, in the shape of the field. Even higher will result in spirals in the field.
You can download the project here