Repository navigation
cloud_sky: evolving coverage (a Dobashi cellular automaton) and orographic clouds - #1033
Merged
Merged
Conversation
…aphic clouds cvc::world::cloud_layer runs a bit-packed cellular automaton over the deck's cells (one 32-layer column each: humidity, activation, cloud). Activation runs up a column and, by chance, into the four neighbours; clouds go extinct and humidity returns, so clouds grow in patches and dissipate. The cells with the most cloud hold the deck's clouds, still exactly `coverage` of them, and fade in and out over 20 s; the shadow and far slices take the same weight as the near volumes. evolve() steps on the world clock, frame-rate independent. Orographic coupling: the slope along the wind under each cell raises its humidity and activation on a windward flank and its extinction in the lee. cloud_sky: wind_az / evolve / orographic / fade props, sky.evolve and sky.orographic live keys (sky_controls.ari), the ground's relief given to the layer. Tests in world_cloud_test; docs and both roadmaps updated.
# Conflicts: # docs/roadmap/GENERATED-WORLD-ROADMAP.md # src/cvcGL/ariadne/lsystem_nodes.cpp
…ium 152, deploy of 38c6b07)
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.
LSYSTEM-LABORATORY-ROADMAP §4.7:
cloud_sky's coverage evolves over time, and orographic coupling gathers it on windward flanks. This was the last open cloud item in GENERATED-WORLD-ROADMAP.What changes
cvc::world::cloud_layer(GL-free)uint32column of 32 layers, with Dobashi's humidity, activation and cloud bits.round(coverage * cells)as before. A held cloud gets a 0.1 lead in the ranking (hysteresis).evolve(dt, rate)steps on the caller's clock: one step everyevolve_s(5 s) at rate 1. Each cell'spresencemoves toward its target overfade_s(20 s), with the fade split at the steps, so one call of 10 s gives the same deck as a hundred calls of 0.1 s.add_shadowandadd_farweight each cell byweight()(a smoothstep ofpresence). The renderer gives the near volume the same weight, so the shade and the far slices match the volumes through a fade.set_ground(heights, rows, cols, x0, y0, dx, dy)keeps a box-averaged copy of the ground.forcing(x, y)is the slope along the wind (wind_az), averaged over nine points of a cloud's footprint and divided by 0.1, in [-1, 1].orographicstrength.set_driftplaces the cells over the ground, so a cloud forms as the wind brings it to a mountain and dies past the crest.set_area) starts the automaton over and runs it 200 steps (warm), so a new deck has already settled.cloud_skyrealizerwind_az(the drift now follows it; 90 = +x, as before),evolve,orographic,fade.sky.evolveandsky.orographic, also onsky_controls.ari(Weather speed, Orographic).Docs: ARIADNE.md (
cloud_skykeys), INDEX.ari binds, terrain_lab.ari (explicitwind_az/evolve/orographic), both roadmaps.Measured / tested
world_cloud_test: 15/15 (7 new):cvcgl_ariadne_realizepasses, including the new seededstorm.evolve/storm.orographiccheck.ariadne_loader_testcomponent tests pass.Not done / notes
base. A lower deck or ground-following bases would show orographic caps there. This is noted in GENERATED-WORLD-ROADMAP.cloudXf.ynow carries the wind's y drift.Snapshots
Taken with arigl on Windows from the cvcpkg prefix. A scratch copy of terrain_lab.ari set the camera from
on_tick. The world clock runs 1/30 s a frame in a snapshot, so 600 frames are 20 s of world time;sky.evolve=30makes that about 120 weather steps, some 10 minutes at the default rate.The images are kept locally with the session's notes; they can be re-made with the commands above.
Seen in passing and present before this change too: the far shells still band into horizontal streaks seen from about 6° elevation.