Skip to content

Terrain lab: an Edge picker for the generated world (world.edge) - #1218

Merged
transfix merged 1 commit into
fix/terrain-edge-wallsfrom
feat/lab-world-edge
Nov 14, 2026
Merged

transfix merged 1 commit into
fix/terrain-edge-wallsfrom
feat/lab-world-edge

Conversation

@transfix

Copy link
Copy Markdown
Owner

Follow-up to #1215. It lets you set the world's edge from the terrain lab window.

Base: fix/terrain-edge-walls (#1215), so the diff shows only this change. Once #1215 merges, retarget this PR to feat/world-gym.

Change

  • world.edge is now a live world.* setting, like world.preset: 0 wall, 1 shore, 2 none.
  • It is seeded from the node's edge: key and read on Regenerate.
  • It is part of the world's signature, so changing it marks the world pending (world.pending) until you press Regenerate.
  • The World panel (world_controls.ari) has a new Edge dropdown (Wall / Shore / None) after Water level.
  • On Regenerate, the walls follow the new world's colliders, and cvcGL draws or removes the outer sea.
  • pycvc_gl.cars logs edge with the other world keys.
  • Documented in docs/ARIADNE.md.

Tests

  • New: AriadneSceneWorld.TheWorldsEdgeIsALiveSetting.
    • The key is seeded as 0.
    • Setting it to 1 waits for Regenerate, and Regenerate then makes a shore world with no walls.
    • Setting it back to 0 brings the walls back.
  • ariadne_loader_test checks the panel's Edge picker.
  • Drawn: an offscreen pycvc_gl host switched a walled world to Shore, regenerated it, and rendered the island with the sea around it.
  • 711 of 711 related ctest pass.

Seen while checking

The viewer's ground grid sits at z = 0, the same height as the sea, so its lines show through the outer sea. This is not changed here.

…picker)

A generated_world node's edge was only its authored `edge:` key, so the terrain lab's World panel
could not change it. It is now a world.* key like the preset: world.edge (0 wall, 1 shore, 2 none),
seeded from the node, read on Regenerate, and part of the world's signature, so an edit marks the
world pending until Regenerate. world_controls.ari has an Edge combo (Wall, Shore, None) after
Water level. The walls follow the new world's colliders, and cvcGL draws or empties the outer sea
on the swap. pycvc_gl.cars logs it with the other world keys.

Tests: AriadneSceneWorld.TheWorldsEdgeIsALiveSetting (seeded 0; 1 waits, then Regenerate makes a
shore world with no walls; 0 brings them back) and the loader's world_controls check for the
Edge picker. Checked drawn too: an offscreen host switched a walled world to Shore and
regenerated it. 711/711 related ctest.
@transfix
transfix merged commit 9f49fdf into fix/terrain-edge-walls Nov 14, 2026
6 checks passed
@transfix
transfix deleted the feat/lab-world-edge branch November 14, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant