Repository navigation
generated_world: sea level at 0 m, a Regenerate button, and --set for ari, arigl and arisrv - #1008
Merged
Merged
Conversation
… ari, arigl and arisrv A preset set the relief and kept the document's water level, so the urban preset's 10 m relief regenerated under 34 m of water: a flat water world. Sea level is now 0 m for every generator: the fbm land's floor sits world_sea_share (34/90) of the relief below it (heightfield_params:: base_m), a DEM is anchored there too (load_dem's floor_m), the island stands in the sea, and water_level_m defaults to 0 and moves the sea from there. The raster now classes the ground under the sea as water and the shore band as sand, and the ground texture shades the water by depth. Edits to world.* wait for Regenerate (world.pending says so); world.auto, a checkbox, rebuilds on every edit as before. --set KEY=VALUE writes a state key before the document loads (ari, arigl: under its root) or before clients connect (arisrv), for debugging and scripted runs.
# Conflicts: # src/cvc/ariadne/host_cli.cpp
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 Joe hit in the deployed terrain lab, and the debugging aid that found the first one.
1. Changing the preset made a flat water world. Switching Standard to Urban regenerated a world of sea, with nothing on it. It was not the LOD. A preset set the relief (urban: 10 m) and left the water level at the document's 34 m, so the whole world was under water. Standard (36 m under 34 m) was nearly as bad.
Sea level is 0 m now, as Joe asked: every generator lays its ground with 0 m as the shoreline.
world_sea_share(34/90, the old default's share) of the relief below the sea, through a newheightfield_params::base_m.load_dem(..., floor_m).water_level_mdefaults to 0 and raises or lowers the sea from there. Presets set it to 0, the panel writes it back on a preset change, and its slider runs -100..100.2. A Regenerate button instead of rebuilding on every edit.
world.*now wait. The panel says "Settings changed: Regenerate to apply them." (world.pending), and Regenerate or Randomize rebuilds once.world.auto, seeded by the node'sauto_regenerate) keeps the old live behaviour.3.
--set KEY=VALUEon ari, arigl and arisrv, for debugging and scripted runs./means from the app's root. Shared parsing lives inhost_cli(parse_state_set,apply_state_sets).Checked
world_generated_test:EveryPresetHasLandAndWater: every preset leaves land and water at sea level 0.ariadne_host_test:SetWritesStateKeysBeforeTheDocument.cvcgl_ariadne_realize:world.pendingset, and Regenerate rebuilds.world.autorebuilds on an edit.