summaryrefslogtreecommitdiff
path: root/dist/wipfel/manifest.webmanifest
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-17 09:23:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-17 09:23:56 +0100
commitdbd57a5a1264ee98697aef036332726e2dd14c7e (patch)
tree9ac8a6a8b1ac1e9890ec28e94e471c2d5af454ee /dist/wipfel/manifest.webmanifest
parentc831403059842452eb284e4319f23f7694987055 (diff)
core+web: auto-tune initial visibility to a reasonable peak count
A fixed height_dist_ratio is wrong everywhere: the default shows hundreds of peaks from a high alpine viewpoint and nothing from flat country. On image load the app now picks the ratio by binary search (visible count is monotone decreasing in the ratio): the LARGEST ratio in the slider range that still leaves at least 8 peaks in the view - the sparsest view that is not empty. Dense terrain that cannot get under 40 even at the sparsest setting is accepted (user can tighten the slider); so is flat terrain that stays under 8 at the most generous setting. A URL-pinned ?vis= wins and disables the search. The lens-FOV limit is now computed in the load handler before the count (the render-time sync would only apply it a frame later). Panorama::auto_visibility(lo, hi) lives in core with four tests: target band hit, flat-terrain floor, dense-terrain overshoot, and no-op when the current ratio is already reasonable.
Diffstat (limited to 'dist/wipfel/manifest.webmanifest')
0 files changed, 0 insertions, 0 deletions