Repository navigation
feat(ui): an "Aerial perspective" field in a Shaded Relief's style pane (#3141, part 2) - #3287
Conversation
… its low ground (opengeos#3141) Part 1 of opengeos#3141. A new Shaded Relief setting, "aerial" (0 to 1, default 0). With t a cell's height on the layer's stretch and k = aerial × (1 − t)^1.5, the cell's light is pulled 0.7 k toward flat ground's light, lowering the contrast of low ground, and its colour is mixed 0.45 k toward a light haze (#ECECEC). Summits keep their relief, so the high ground stands out. It is painted in the Colorizer, so the map, exports, layouts and the 3D drape all draw it; a colour bar shows the haze but not the pull, which is the shading's contrast and not a colour of the ramp. raster.symbology takes "aerial" (left out, kept; outside 0 to 1, refused; null or 0, none); a layer or saved step setting it requires shaded-relief-aerial. The style pane's field and the user guide come in part 2. At 0 a relief is drawn pixel for pixel as before: no_aerial_perspective_paints_as_before checks every pixel against main's formula, copied into the test, over heights, hillshades, sky, fill, rock, ambient, balanced light, sun altitude and brightness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ne (opengeos#3141) Part 2 of opengeos#3141. The style pane's Shaded Relief settings gain "Aerial perspective" (0 to 1), which runs raster.symbology with "aerial". The user guide describes the setting, and a layout page test checks that a page whose frame and colour bar draw a relief rising eastward is lighter the stronger the setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/engine/src/project_capabilities.rs # crates/ui-egui/src/panes.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewBugs: None found. I checked the pane change against the engine and the renderer:
Security: None found. Performance: None found. The change adds one slider and one tooltip. Quality (both left for the release quality pass, as nits):
AGENTS.md: No rule breaks found. The part 1 command, capability and fixture changes already meet the rules on schema, the command surface and "never silent" refusals. This PR adds the pane field and the guide text only. Prior reviews: The PR has no review threads, so I left no earlier concerns alone. What I did not check: I did not build or run the tests (no shell in this environment). The author reports local test runs on Windows, and CI on Linux will be the real check. Change sizeCompared with
|
Closes #3141 (part 2 of 2; part 1 was #3260).
What it does
The style pane's Shaded Relief settings gain Aerial perspective (0 to 1), after Ambient. Moving it runs
raster.symbologywith"aerial", the setting part 1 added, so Undo, saving and the project capability work as they do for the command. Its tooltip: "Low ground, by its height on the stretch, lit with less contrast and hazed, so the high ground stands out, from 0 (none) to 1".The user guide (
docs/user-guide/data.md) describes the setting next to Ambient and Balanced light.The pane above: Copernicus DEM GLO-30 of Ouro Preto (Minas Gerais), Terrain ramp, stretch 650–1,912 m, aerial perspective 0.6, from the headless
ui_shotexample. DEM: Copernicus DEM GLO-30, © DLR e.V. and Airbus, provided under COPERNICUS by the European Union and ESA.Surfaces
raster.symbologysince feat(map): a Shaded Relief's aerial perspective hazes and flattens its low ground (#3141, part 1) #3260.Tests
rustgis-render:a_reliefs_aerial_perspective_lightens_its_pagedraws a layout page whose frame and colour bar show a relief rising eastward, at 0, 0.6 and 1. Each page is lighter than the one before.rustgis-render960 passed;rustgis-ui-egui1707 passed (lib) plus its integration tests.cargo fmtandcargo clippy -D warnings(render, ui-egui, all targets) pass.Size: 51 changed lines (+49 −2).
🤖 Generated with Claude Code
Summary by CodeRabbit