Commit 01ff174
Cluster and sample point primitives are placed at altitude=0 (the WGS84
ellipsoid surface). With Cesium world terrain enabled, terrain mesh in
hilly regions (Troodos in Cyprus, hill country around Birmingham AL,
etc.) rises hundreds to thousands of meters above ellipsoid — so points
at altitude=0 are physically *underground* in those regions and get
depth-culled by Cesium's standard per-pixel depth test.
The fix is one new property at each of the three .add() call sites:
disableDepthTestDistance: POINT_DEPTH_TEST_DISTANCE // 2.0e6 = 2,000 km
Bypass scope: only when the camera is closer than 2,000 km, which covers
every realistic interactive altitude (point mode <120 km, res8 cluster
up to ~300 km, res6 up to ~3,000 km — the upper end is technically
outside the bypass but at that altitude dots are tiny anyway).
Why bounded (2.0e6) and not POSITIVE_INFINITY: PR #181 used Infinity and
caused back-side-of-globe primitive bleed-through plus broke pickability
(was reverted via #183). A 2,000 km bound preserves globe-ellipsoid
occlusion at long range while bypassing terrain occlusion at every
interactive zoom.
Hypothesis source: Codex review of #185 identified sea-level placement
as the most likely root cause. Confirmed experimentally by runtime-
patching the live deploy:
T0 baseline (no fix) Cyprus interior: ~0 dots
T1 swap to EllipsoidTerrainProvider minor improvement
T2 raise primitives to height=5000m significant improvement
T3 disableDepthTestDistance: 2.0e6 (this PR) significant, equivalent
to T2, no back-side bleed
Closes #185.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 976715b commit 01ff174
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
420 | 441 | | |
421 | 442 | | |
422 | 443 | | |
| |||
1034 | 1055 | | |
1035 | 1056 | | |
1036 | 1057 | | |
| 1058 | + | |
1037 | 1059 | | |
1038 | 1060 | | |
1039 | 1061 | | |
| |||
1395 | 1417 | | |
1396 | 1418 | | |
1397 | 1419 | | |
| 1420 | + | |
1398 | 1421 | | |
1399 | 1422 | | |
1400 | 1423 | | |
| |||
1566 | 1589 | | |
1567 | 1590 | | |
1568 | 1591 | | |
| 1592 | + | |
1569 | 1593 | | |
1570 | 1594 | | |
1571 | 1595 | | |
| |||
0 commit comments