fix(annotations): keep an arrow whose unsampled far end is past the 0 m horizon (#1277)

An endpoint outside the frustum is not sampled and projects at its 0 m
stand-in height. The horizon test then judged that stand-in, so an arrow
whose far end lies beyond the sea-level horizon but above it at its real
height disappeared with its label. Such an endpoint now skips the point
horizon test; the height-range test still drops endpoints that are
provably hidden, and settled or in-frustum anchors keep the point test.

Adds a regression with a real frustum and occluder (camera 100 m up, far
end 56 km away on 100 m terrain). CURRENT-STATE and the changelog now say
the 32-sample budget applies per projection pass, and the redundant helper
comment in the test is gone.
This commit is contained in:
German Khokhlov committed 2026-11-19 19:09:56 +04:00
1 parent 8767eb23ab
commit 40daecadbe
4 files changed
+112 -13

No files matched your search

+3 -2
View File
@@ -1,4 +1,5 @@
- Stop screen annotations sampling surface height for marks that are hidden,
behind the camera or over the horizon. Visible marks still waiting for
terrain share 32 samples per projection pass and retry once a second, so a
large board no longer stalls the frame (asturksever, #1277).
terrain share 32 samples per projection pass and retry once a second, so
drawing a large board no longer stalls the app for seconds (asturksever,
#1277).