TerraFractal, part 9: climate and clouds

Climate decides most of what you see on a planet: where the forests and deserts are, where the snow sits, how hard the rivers cut. In TerraFractal it’s simulated, not painted.

What the climate model does

It’s an annual-average model, run alongside the plates:

  • Sunlight from the planet’s tilt and orbit, and a greenhouse effect.
  • Wind bands whose number depends on how fast the planet spins and how big it is, steered around mountain ranges and slowed over plateaus.
  • Ocean gyres with warm currents along western boundaries, cold upwelling along eastern ones, and an overturning circulation that carries heat poleward. The ocean warms or cools the air, and the air drives the ocean back.
  • Moisture carried by the wind and rained out where air rises: over mountains, where winds converge, over warm water.
  • Ice ages from orbital cycles, tracked as “how long was this ground under ice”, which later shapes the glacial landforms.
Prevailing winds over the whole planet, bent around the continents
Prevailing winds over the whole planet, bent around the continents.
Ocean currents from the same simulation
Ocean currents from the same simulation.

Snowlines

Permanent snow first used annual temperature, which put snow over cold dry continental interiors that would really be bare. Now it uses the summer temperature against the glacier equilibrium line, which depends on how much snow falls: about -2 °C where it’s dry, +7 °C where it’s very wet. On the test world, snow cover at 45-60° latitude dropped from 20% of the land to 11%.

Clouds: a reading of the climate

Clouds are display only. They never feed back into the climate. They’re a picture of the climate fields, the same way the vegetation colour is.

That makes them a good check. If the climate is right, the clouds should be in the right places: marine stratus decks over cold upwelling water off western coasts, towering convection near the equator, cap clouds on mountain ranges and clear skies in their lee, comma-shaped storms in the mid-latitudes and banded hurricanes over warm tropical ocean.

Clouds from orbit
Clouds from orbit. A mid-latitude storm swirls in the upper middle; the dry interiors are clear.

What didn’t work

  • Cloud cover drawn as a fraction looked like a uniform grey veil from orbit. Real cloud is mostly either there or not. Splitting the fraction into patches with sharp-ish edges fixed it.
  • More octaves of noise didn’t fix the clouds looking repetitive from far away. Giving each region its own mix of octaves did.
  • Blending cloud densities between views made holes appear all at once. Blending how opaque they look instead made the transition smooth.
Clouds from 400 km up, looking toward the horizon
Clouds from 400 km up, looking toward the horizon.

Still open: the clouds look a bit repetitive between 500 and 1,000 km up, and the climate has no monsoons or Mediterranean summer-dry coasts yet. High-latitude west coasts come out too dry, and sea temperatures drop too fast toward the poles.