top of page
france-bretagne-starry-sky-2026-01-05-00-45-52-utc.jpg

Biome Simulation

Writer: Luka Jankovic
Luka Jankovic
Nov 16
2 min read

A planet’s environments should follow a recognizable pattern while still allowing local variation. I wanted temperature and precipitation to determine where different biomes could appear, without reducing the surface to uniform bands around the equator.

Planet Architect builds this through several connected systems: procedural climate fields, biome classification in climate space, and a spherical region map that controls the boundaries between environments.


Choosing biomes in climate space

Instead of defining each biome through a long list of temperature and precipitation thresholds, I represent its preferred conditions as points on a two-dimensional graph.

One axis represents temperature and the other represents precipitation. Each biome can have several target points, allowing it to occupy more than one part of climate space. A sampled climate is assigned to the biome whose target is closest.


Since temperature and precipitation have different numerical ranges, their raw distances cannot be compared directly. I scale temperature differences using the sampled planetary temperature range and an adjustable temperature weight:

Here, T and P are the sampled conditions, while Tᵢ and Pᵢ describe a biome target. The temperature weight controls how strongly temperature affects the classification relative to precipitation.

This produces a Voronoi partition in climate space. The biome editor displays that partition directly, so moving a target changes the conditions associated with its biome. Multiple targets belonging to the same biome can form a more flexible region than a single rectangular range.


Turning climate into geographic regions

The climate-space diagram determines which environment suits a location, but the planet still needs a geographic representation of those environments.

I distribute sample sites over the sphere and evaluate temperature and precipitation at each one. Each site receives a biome through the climate-space lookup. Neighboring sites with the same biome then form larger regions, with a local cleanup pass reducing isolated fragments. Biomes marked as rare use a less aggressive cleanup threshold so that small regions are less likely to disappear.

This creates two distinct uses of Voronoi geometry: one classifies environmental conditions, while the other organizes those classifications across the planet.

To make the geographic boundaries less regular, I apply domain warping when querying the biome map. Three noise fields produce a displacement vector, which offsets the query position before it is projected back onto the sphere. The terrain geometry stays in place; the location used to sample the biome map changes. The warp introduces curves and irregularities into the boundaries without requiring a much denser set of biome sites.



Blending environments into the terrain

Near a biome boundary, the spherical boundary-distance algorithm identifies the neighboring regions and their influence. A quintic smoothstep turns those distances into blend weights, which are normalized so that their total remains one. The boundary search uses a KD-tree containing boundary sites, concentrating the geometric work around the samples that define transitions.

For detailed rendering, each chunk builds a local palette of up to four biomes. Their blend weights are packed into the red, green, blue, and alpha vertex-color channels, allowing the shader to interpolate between the corresponding materials.

 
 

SUBSCRIBE TO MY BLOG

bottom of page