Mikrobotanik

A physics simulation about tiny digital organisms

It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change.

About digital creatures

Mikrobotanik is an algorithmic physics simulation that generates small digital organisms. Every time the algorithm is run a new digital creature is discovered, with its own unique configuration. Each creature is a soft membrane of particles held together by simulated springs. These creatures breathe, crowd and press against one another and are interactive. Inside each cell, branching structures grow (coils, spirals, veins and speckles) until there is no room left. There is no behaviour in the code, no goal and no brain.

The creatures are also interactive, they can be dragged, pulled, and pushed, so that visitors can play with them and even try to destroy them.

Specimens

Every run of the algorithm starts from a different random seed, so the same rules give a different organism each time: another number of cells, other sizes, another palette, other structures inside. No specimen comes back unless its seed is kept. These six were recorded from earlier versions of the project.

Simulating soft bodies with code

Every creature is a soft body: a ring of particles joined by springs. Nothing is drawn by hand and nothing is animated. The shapes are what is left when the forces have balanced. The sketch below is the smallest version of it, two rings of particles and springs. Drag a particle.

How it works, step by step, is in the article on soft body physics and blobs.

Membranes

The outer ring is the membrane. Each particle is tied to its neighbours, and to the neighbours a few steps along, so the ring bends without folding. A spatial grid keeps track of which particles are close, so creatures that touch push each other away rather than passing through.

What grows inside

Inside the membrane, lines of particles grow from a few starting points and turn away from whatever is in their path. They stop when there is no room left, which is why no two interiors are alike: a coil in one, speckles in the next.

Power diagrams

Where two creatures press together, they share a wall. A power diagram is the plainest version of that idea: circles of different sizes, and where two overlap, a straight line through their two crossing points that both keep to. Drag a circle in the sketch below and watch its walls move.

A bigger circle takes more of the wall’s side than a smaller one, and a circle swallowed by its neighbours keeps no cell at all. The creatures do the same thing with springs instead of geometry, which is why their walls bend.

Pixels

The simulation is first drawn the ordinary way, with WebGL: thin smooth lines for the membranes and dots for what grows inside. Nobody sees that picture. A second pass, a shader, redraws it before it reaches the screen.

The shader cuts the screen into blocks of six by six pixels and gives each block one colour, read from a single point of the picture underneath. That colour is then replaced by the nearest one in the run’s palette, so nothing in between survives: a block is either the background or one of the creature’s few colours. A membrane a pixel or two wide becomes a chain of blocks, and a curve becomes a staircase.

Last, a block whose colour differs from the block to its right or the one below it is made a little brighter, which gives the outlines their slight glow.

Each palette has three parts: colours for the membranes, accent colours for what grows inside, and a background. A run picks one palette and keeps to it, like a specimen stained with one dye and seen through a low-resolution microscope.

Credits

  • Artist. Ahmad Moussa (Gorilla Sun)
  • Year. 2025
  • Made with. JavaScript, three.js (WebGL), his own soft-body physics, a GLSL pixel shader
  • Medium. Browser, real time, seeded