Alexis Mabanza @ alexvolkihar.ovh

Dunes

Dune fields grown slab by slab by the wind

Each piece starts as loose sand on a bare floor: an uneven sheet and a few heaps. Then the wind blows. Hundreds of thousands of times, a spot is picked at random; if it holds sand and is not sheltered behind a crest, one slab of sand is lifted and carried a few steps downwind, where it may settle or bounce on. Behind every crest lies a wind shadow where slabs always drop, and any slope steeper than the angle of repose slides down until it is stable again, which builds the steep slip faces. Nothing else is programmed: with one steady wind and little sand the heaps become crescent barchans whose horns point downwind; with more sand they fuse into barchanoid and transverse ridges; two seasonal winds stretch the sand into long linear seifs, and winds from all four quarters gather it into star dunes and networks. The field is then lit by a high, low or grazing sun, combed by wind ripples, and seen from straight above or from a low angle that runs to the horizon. Press New seed for a fresh hash, then share the URL to show someone that exact piece.

All series
0x9874bb97…06c1
Palette NamibWind ComplexSand ModerateView AerialSun Low
0x59d1ec2e…ef83
Palette GypsumWind UnidirectionalSand AbundantView ObliqueSun Low
0xaacaa649…03e0
Palette ErgWind ComplexSand ModerateView AerialSun Low
0x524c95a4…05ff
Palette ErgWind UnidirectionalSand ModerateView ObliqueSun Low
0x16ebb293…de45
Palette NocturneWind UnidirectionalSand AbundantView AerialSun High
0x43907120…b6b3
Palette DuskWind BimodalSand ModerateView ObliqueSun High
0x26d4453f…3d21
Palette NamibWind BimodalSand ModerateView AerialSun High
0x4a1a6b19…ce9d
Palette MarsWind UnidirectionalSand ModerateView AerialSun High
0xdfed67a2…3297
Palette NocturneWind BimodalSand ModerateView AerialSun High
0x5474e987…a315
Palette ErgWind BimodalSand ScarceView AerialSun High
0xd7644ac3…93a0
Palette GypsumWind BimodalSand ScarceView ObliqueSun Grazing
0x4c80bd20…4fdd
Palette GypsumWind ComplexSand ModerateView AerialSun Grazing

Traits

The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.

TraitValues (weight)
PaletteErg 22 · Namib 18 · Gypsum 16 · Dusk 14 · Mars 15 · Nocturne 15
WindUnidirectional 45 · Bimodal 30 · Complex 25
SandScarce 30 · Moderate 40 · Abundant 30
ViewAerial 60 · Oblique 40
SunHigh 30 · Low 50 · Grazing 20

Credits

  • Dunes: the slab model of Bradley T. Werner, "Eolian dunes: computer simulations and attractor interpretation" (Geology 23, 1995): slabs picked at random, carried a fixed hop downwind, deposited with a higher probability on sand than on bare ground and always inside the 15° shadow zone of an upwind crest, with avalanching at the angle of repose, on a periodic grid. Werner’s model reproduces barchans, transverse, linear and star dunes from the wind regime and the sand supply alone. The review by Jasper F. Kok, Eric J. R. Parteli, Timothy I. Michaels and Diana Bou Karam, "The physics of wind-blown sand and dust" (Reports on Progress in Physics 75, 2012), describes the model and its descendants. The implementation here is original, written from those descriptions; the shadow zone is kept up to date incrementally, slabs are picked among the cells that hold sand (the same process as picking any cell and skipping bare ones, only faster), and several winds blow in turn, as seasons. The field is a torus, seen turned and gently warped from above. So that a wide canvas does not show the same dunes over and over, four copies of the torus, shifted by random fractions of a period, share the plane: the sand is split into dunes (two dunes stay apart where the neck between them is low), and each copy keeps the dunes whose centre falls where its own slow, never-repeating noise is the highest, so dunes are kept or dropped whole and only the middle of the canvas shows the field exactly as it grew. Where two kept dunes would overlap, the one that won its place more clearly stays, and a dune parted from a dropped neighbour thins out into the floor instead of ending in a cut.
  • Low-angle view: the column-by-column heightmap renderer known as Voxel Space, from Kyle Freeman’s engine for Comanche (NovaLogic, 1992), as documented by Sebastian Macke in VoxelSpace. Heights are exaggerated one and a half times, the camera stands a little above the crests and is aimed at one of the tallest dunes, chosen among several placements for the clearest line of sight, and distance fades into an aerial haze. Close to the camera, slices are about one row apart, and detail finer than the simulation is drawn at the resolution of the image: the brink of each slip face is redrawn as a sharp edge with a thin lit lip, a second, finer set of ripples follows the surface in perspective, and several octaves of grain cover the sand and the floor.
  • Light: Lambertian hillshade with shadows cast by marching towards the sun over the height grid. Slip faces are found where the model left steps at the angle of repose, and rebuilt at the resolution of the image as planes at that angle, with a crisp brink on convex crests; wind ripples are added to the surface normal across the main wind, on the stoss slopes and flats only, and the interdune floor is shaded nearly flat with a fine grain.
  • Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
  • The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.

Artworks © Alexvolkihar, licensed CC BY-NC-ND 4.0. Code under the repository licence (MIT).


>