Drift

Paolo Čerić · 2023

Sample output of Drift

Particle systems have always held a special place in my heart. The inherent simplicity of each particle and the complexity of what emerges is a theme I have always enjoyed exploring. \ With *Drift*, I continue this exploration and delve deeper into the intricacies of one such system, to see what emotions it can evoke. To export a PNG, I recommend adding a size parameter to the query string, such as &size=4000 to define the longer size, and then pressing 's' after the rendering is complete. Also, please check the console for rendering and saving information. The piece is computationally expensive and requires an adequate GPU. It is important to understand that due to the complexity of the simulation, the result may look different across different devices. This variation is primarily due to the different capabilities of each device's GPU. Therefore, the uniqueness of each viewing experience is not only a product of the hash but also the inherent unpredictability and variation in hardware capabilities. Please be mindful of this while enjoying *Drift*.

How it works

40000 particles advected over 100 steps by interchangeable compute GLSL shaders (./algos/${shader}.glsl, e.g. 'wrp') accumulated onto the canvas, with a Perlin noise util.

The core is a mechanism that "advects large-scale particles on the GPU with a flow field". initParticles generates forty thousand particles, and applies a swappable compute GLSL shader (e.g. wrp = warp) under ./algos/ for 100 steps to update each particle's position along the flow. By accumulating its trajectory on the canvas, striations that drift like mist emerge. The source of the flow is a Perlin noise utility, and the smooth gradient field pushes the particles in a consistent direction. Because the algorithm names are externalised as files, the very rule of advection can be switched per edition, which is the design's subtlety. Depending on which shader is chosen and how the initial distribution and colouring are assigned, the expression of the screen changes greatly, from a quiet drift to a swirling turbulence.

Palette

From the generator script · 3
#ffffff#abffbc#aaccff
Extracted from outputs · 8
#383634#2c2a28#858483#989897#abaaa9#6b6a68#bdbdbc#4e4c4b

Algorithms

Details

Runtimes
Browser (WebGL / GLSL)
Movement
Long-form Generative Art
Medium
Real-time software
Relations
released-on → verse
On-chain
ethereum · 0x3a476c1f8cefb29360e02f19ebb579632eb3287b

Sources

Related works (by shared algorithms)

Blooms
cory-haber · 2024
Cytographia
golan-levin · 2024
Exstasis
grant-oesterling · 2023
Flows
ryley-o-eth · 2023
Life and Love and Nothing
nat-sarkissian · 2023
Longing
phenomena · 2023
Lumina
distcollective · 2023
Nära
tengil · 2023

Last updated 2026-07-16