s2ar

Tools · 01 · The world lab

StarLab

A world lab. Water, fire, smoke, sand, soil, lava, ice and living things in voxels, every cell simulated on the GPU and lit by a renderer of its own. Paint a world, raise its land, set its water, and watch it run.

Runs in your browser on the lab page (WebGPU); the desktop console comes with the releases.

River delta, simulated in StarLab: water running down stone channels into a basin
River delta, simulated in StarLab: water running down stone channels into a basin
StarLab
The StarLab toy on this site: a small basin of voxel water fed by a spring, kelp planted on its bed, beside a palette of materials and the world's digest.
The toy on this site, after a few drops: a spring in a basin on the open reference simulation. Pick a material, drop it, read the digest, replay the tape. Try it in the page

What it does

Small worlds, whole.

01

Elements that behave

Water, stone, sand, soil, lava, steam, ice, crystal, coral, oil, acid, kelp, ivy, grass and creatures; fire leaves smouldering char, embers and smoke, sand fuses to glass and mud fires to brick.

02

Nothing lost

Matter is conserved exactly, and an optional climate runs evaporation, clouds and rain.

03

Shape it by hand

Paint with brushes; raise, lower or smooth the land; set water levels; place geysers, springs and vents; undo any stroke, and save a world byte for byte.

04

Whole planets

Generated planets with tectonics, erosion and 13 biomes: orbit one, land on it, terraform it, and leave with your edits kept.

05

A renderer of its own

Transparent water, particles and an underwater grade, a key light at any distance with the lattice's bounce, smoke shadows and firelight.

06

A gallery to start from

StarLab opens on 27 showcases on seven shelves, light, engine, water, earth and planets, fire, sky and life, each with its measured frame time.

How it works

Every cell, twice.

The simulation is Rust on the GPU: CubeCL, through wgpu, to Metal or Vulkan. Every kernel has a word-exact twin on the CPU and every cell's state is a whole number, so the same seed grows the same cells on a Mac and on an iPhone.

The console is a LÖVE 12 app that drives the simulation directly, and its create mode can carry a voxel scene and its animated camera out to Blender.

Simulation
Rust and CubeCL, through wgpu to Metal or Vulkan
Determinism
Whole-number cells; a CPU twin for every kernel
Runs on
macOS and Windows; the simulation also runs on an iPhone
Status
In use here; in your browser on the lab page; the console not yet released

Release

experimentalNo download yet. A signed build, its record and its stage arrive here with the first release.

Made in StarLab

Worlds to start from.

Every frame is the engine's own render. Point at one to watch it run.

Fire Season, rendered in StarLab
World 01Fire Seasonworldreplayed 60 steps on the reference sim · 639aefd52cbf0c42 · 62 ms a step
River Delta, rendered in StarLab
World 02River Deltaearthreplayed 60 steps on the reference sim · 10c09e1e217b084f · 57 ms a step
Artesian Geyser, rendered in StarLab
World 03Artesian Geyserwaterthe reference sim refuses this world: the particle pool's state was captured (the pool is not in the twin); flux.jets (not in the twin)
Kelp Current, rendered in StarLab
World 04Kelp Currentwaterreplayed 60 steps on the reference sim · 37b284c416babca0 · 63 ms a step
Lava Coast, rendered in StarLab
World 05Lava Coastearthreplayed 60 steps on the reference sim · 75d0f1ac238962c8 · 59 ms a step
Smouldering Char, rendered in StarLab
World 06Smouldering Charfirereplayed 60 steps on the reference sim · eefbe11253fcda48 · 60 ms a step