Log inGet started
World

Hollowmere — Gearworks of the Glimmer

Branchmain
Branchesmain
Commitde3bb59bda

README.md

glimmerhollow

The valley Hollowmere stands in, as a raster graph on the terrain family.

A 720 m square of ground at 2 m per cell, shaped in this order:

  1. terrain.ridge cuts a trench 230 m wide down the +X axis — the valley itself.
  2. Two more ridges raise the walls either side of it.
  3. terrain.fbm lays rolling relief over the whole thing.
  4. terrain.erode weathers it, so the shapes read as land rather than as noise.
  5. terrain.flatten levels a shelf on the north bank — the pad the town stands on.
  6. terrain.flatten sinks a basin at the west end.
  7. terrain.river carves a channel along the valley floor and runs water down it.
  8. terrain.lake floods the basin to a level, so the tarn's shore is the terrain's own contour.

Then four surface masks on slope and height — crag on the steep ground, moss on everything gentle, loam as noise patches over the moss, and silt along the low ground near the water — written out as a .terrainData with the two demo rock and earth texture sets bound to the first two.

The last node is a Landscape, so the graph's output is an entity: a Terrain carrying the heightfield, its water surface and its colliders. It drops into a scene as a Generator and answers heightAt / slopeAt / waterAt at runtime.

Inputs

inputwhat it does
extentthe rect's side, in metres
reliefamplitude of the rolling noise
wallHeighthow high the valley walls rise
floorCuthow deep the trench cuts — negative is down
lakeLevelthe world Y the tarn floods to
weatherdroplet erosion iterations; 0 leaves the shaping raw

floorCut and lakeLevel have to agree: raise the floor above the lake level and the tarn drains into whatever hollow is left, because the fill only reaches ground the seed actually connects to.