A5: World art for points of interest, build pieces, vessels and terrain

- PoiMesher dresses every point of interest from its parts: lapped tarred
  weatherboards, plank boards, stone in a running bond with lichen, tiled
  roofs with a ridge cap, salt-white trim on paint, crusted salt pans, and a
  tarred frame round the lighthouse's glowing glass. One mesh per POI.
- Huts get a shuttered window in each side wall (non-solid parts, no rng).
- Build pieces show their state: building in quarter steps, worn (a third of
  health gone) and battered (two thirds gone, strips knocked out).
  StructureView rebuilds a piece's mesh only when its state changes.
- VesselModels builds the barge (lofted hull, curved rails, mooring lines,
  gored envelope) and the sea chests in code; the primitive stand-ins are gone.
- Terrain: tussocks, wind-dried patches, shingle on sand, lichen on rock.
- test_world_art (9) fails on any primitive stand-in mesh or placeholder
  resource under src/ or assets/, and covers POI bounds and determinism,
  windows, the lamp surface, wear and build stages, view rebuilds and the
  vessel models.
- make poi-captures and make build-captures (state card, vessels).

Closes #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 20:39:24 -05:00
co-authored by Claude Opus 5.5
parent fdd4c992c3
commit 923876ed1f
22 changed files with 976 additions and 131 deletions
+28
View File
@@ -42,6 +42,8 @@ or `src/app`, and on any palette colour this table doesn't list. Values are sRGB
| `CRATE_WOOD` | 0.68, 0.55, 0.38 | Unpainted crate wood |
| `BARK` | 0.40, 0.30, 0.22 | Pine bark |
| `HOLD_SHADOW` | 0.22, 0.20, 0.18 | Inside an emptied chest or hold |
| `WINDOW_PANE` | 0.13, 0.16, 0.17 | Window glass from outside |
| `OPENED_DULL` | 0.45, 0.43, 0.42 | Tint over an opened sea chest |
| `CANVAS` | 0.84, 0.80, 0.68 | Rope and sailcloth |
| `TANNED_SAIL` | 0.62, 0.44, 0.28 | Bark-tanned sails |
| `STONE` | 0.56, 0.54, 0.49 | Field stone in walls and quays |
@@ -136,6 +138,32 @@ No shiny plastic, no rim lights, no bloom beyond lamps.
- **Silhouettes first.** Every object reads by outline alone; the ink pass depends on
it.
## World art (A5)
Everything in the world is built in code from `Palette` colours; there are no texture
files. The rule is that what is drawn is what blocks: dressing stays inside each
collision box, give or take a few centimetres of lap or trim.
- **Points of interest** (`PoiMesher`): tarred walls are lapped weatherboards, every
other board standing proud; plank is boards (vertical on walls, across decks); stone
is courses in a running bond with the odd lichened block; roofs are rows of ochre
tiles over a dark fascia with a ridge cap; paint carries a salt-white border line;
salt pans are crusted; huts have a shuttered window in each side wall; the light
chamber glows in a tarred frame.
- **Build pieces** (`PieceMesher`) show their state. Building, the strips go up one
after another in quarter steps with nothing behind them. Worn (a third of health
gone), a third of the strips are split short and darkened. Battered (two thirds
gone), a third are knocked out so the dark backing shows, and the rest are split
and charred. `make build-captures` renders the test card (`captures/build_states.png`).
- **The barge and sea chests** (`VesselModels`): a lofted tarred hull with an ochre
rubbing strake under a gored canvas envelope, striped tanned and banded ochre; sea
chests painted sea-green with tarred bands, a salt-white border and a gilt hasp.
- **Terrain** (`terrain.gdshader`): sand with shingle, marsh, grass in tussocks and
wind-dried patches, rock with lichen blotches, pale summits. Fine detail fades out
past about 150 m so it doesn't shimmer.
- **Props** (`PropView`): low-poly pines, scrub, boulders, wrecks and crates, per
vertex coloured and tinted per instance.
## Characters
- **Proportions:** about 6.5 heads tall, broad shoulders, heavy boots and coats, hands