Particles in 2D/3D computed with OpenGL

Опубликовано: 11 Май 2026
на канале: Briac
333
15

This program is based on the techniques used in Field Play.
See https://github.com/anvaka/fieldplay for more info.

Each particle's velocity is defined by sampling a vector field at the particle's current position. The differential equation is solved by a simple explicit Euler scheme. The GPU is used in order to greatly increase the computation speed.

The techniques used in Field Play can be easily tweaked in order to work in 3D, as shown in the video.


The possibilities are endless, as we can change the vector field over time. Moreover, we could for instance create interactions between particles and user inputs to increase interactivity.