Repository navigation
World edge: terrain_lab's sea by default, swash all round the shore edge, a rock under a floating world - #1482
Merged
Conversation
…dge, a rock under a floating world The shore edge's beaches showed no swash while inland coasts did. Its sea floor rose almost sheer (27 m in 30 m) to a 1 in 50 beach, so the swell never shoaled and broke only in the last cell, and the runup carried up the beach came from the waterline cell's slope, its depth over half a cell whatever its true distance: 0.18 m to windward, 0.02 m in the lee. - shore_terrain: the band is a beach's profile: a shelf, a 1 in 12 surf zone to the waterline at 45 %, a 1 in 10 face to a 1.5 m berm, a 1 in 50 backshore to 70 %. terrain_mask::beach marks it: the raster classes dry ground there as sand, and the streets keep behind it. - shore_layer: beside a dry cell the waterline's slope is the slope across it where that is steeper; lee_exposure (default 0) sets the least exposure; two 3 x 3 passes even out the carried phase and runup so the swash front does not step with the grid. The water node's coast passes lee_exposure 0.25. The platform digest is measured again. - world_underside: a world with walls or none hangs over a rock (its top ring the terrain's rim, a cliff, then a tapering ragged cone), drawn by cvcGL's generated_world node under <id>_underside. - terrain_lab.ari: edge: shore. Runup over the first dry ground on terrain_lab's rim: east 0.18 -> 1.24 m, north 0.07 -> 0.50, west (lee) 0.02 -> 0.31, south 0.01 -> 0.58.
transfix
enabled auto-merge (squash)
November 23, 2026 03:57
transfix
added a commit
that referenced
this pull request
Nov 23, 2026
… into p9/volume-grid-segment INDEX.ari keeps both new entries (volume_grid_segmentation, http_cache). volume_grid_contours.png conflicted (#1450 re-rendered it for rows that flow); kept ours until CI renders the merged panel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three things about a generated world's edge, all seen in terrain_lab:
edge: shore(the island in the sea) becomes terrain_lab's default.Why the rim had no swash
I measured it with the coast terrain_lab's water builds (
scene_water_shore): seed 5's world, and a swell of 0.8 m, 9 s, travelling toward 200°.Change
The shore band is a beach's profile (
shore_terrain::coast). Measured from the edge:New constants:
world_surf_slope,world_beach_face_slopeandworld_berm_m.terrain_mask::beach:derived_class's 0.6 m sand band, so without the mask it would be grass.shore_layer:lee_exposure. A new parameter, the least exposure a shore gets. It defaults to 0, so the layer's own behaviour and its lee test are unchanged.The water node's coast (
scene_water, drawn and physics) passeslee_exposure0.25. Diffraction carries some swell round an island, so its far side gets small breakers and a gentle swash, not a dead calm.world::world_undersideand cvcGL'sworld_nodes: the rock under a world with walls or no edge.halftall.half(plus half the relief) further down.<id>_underside, which follows the world's visibility. A shore edge empties it.terrain_lab.ari:edge: shore.docs/ARIADNE.md: the beach profile, the lee swell and the rock.Results
terrain_lab's world. "Runup" is the runup over the first dry ground walking in from the middle of each side.
I rendered it natively offscreen with a scratch harness, not committed:
Tests
AriadneSceneWorld.AShoreEdgedWorldsBeachTakesTheSwashAllRound: on every side of terrain_lab's shore edge, the swell reaches the surf zone and the runup tops the first dry ground by at least 0.15 m. Windward it is over 0.8 m.WorldGenerated.AFloatingWorldHangsOverARockchecks that:WorldGenerated.AShoreEdgeLinesTheWorldWithABeachAndTheSea: the window that looks for sand moved to the berm (60-70 % of the band, which is the surf zone's place now). It also checks that the berm is sand above 0.6 m.OceanShore.IsTheSameOnEveryPlatform, re-baselined: 0x0d101cbd6365b13f → 0x7524b796ce361d62, measured on MSVC x86_64. The runup and the carried fields changed by design. The new arithmetic is subtraction, division, max and means of floats in a fixed order, so the other platforms should agree. A lane that disagrees has found a determinism leak.Not checked yet: