Repository navigation
Terrain lab: an Edge picker for the generated world (world.edge) - #1218
Merged
Merged
Conversation
…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.
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.
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 tofeat/world-gym.Change
world.edgeis now a liveworld.*setting, likeworld.preset: 0 wall, 1 shore, 2 none.edge:key and read on Regenerate.world.pending) until you press Regenerate.world_controls.ari) has a new Edge dropdown (Wall / Shore / None) after Water level.pycvc_gl.carslogsedgewith the other world keys.Tests
AriadneSceneWorld.TheWorldsEdgeIsALiveSetting.ariadne_loader_testchecks the panel's Edge picker.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.