Keep vehicles off rooftops: probe the mesh where the vehicle is and keep a cell's lowest reading

The rendered-mesh floor took one probe at each coarse cell's centre and kept it
for the session. A centre on a roof passed the +80 m DEM window and lifted every
vehicle in the cell to roof height (a Haymarket bus drew 23.5 m above the
street); a centre in the river put Red Line trains on the Longfellow Bridge
6-9 m under the deck. The sampler now probes at the caller's point, reads a
latched cell again at up to four points apart from each other, and the gate
keeps the lowest reading that passes.
This commit is contained in:
Sameh Khamis committed 2026-11-08 22:45:51 -08:00
1 parent 347427f83d
commit 18a9e0470d
4 files changed
+119 -13

No files matched your search

+17 -1
View File
@@ -1130,6 +1130,22 @@ controller throws naming it. Whether the aircraft it flies still draws comes
from its `trackedEntityDrawn` service (the application asks the viewer's
entities); without one, Cockpit takes the aircraft as drawn.
## Rendered-mesh floor cells — November 8, 2026
On the photoreal stack the shared floor (`cachedGroundFloor`) answers from a
rendered-mesh reading per coarse cell (0.001°, about 110 × 80 m), sampled by
`src/services/meshFloorSampler.js` and gated against the DEM by
`reportValidatedMeshFloorCell` in `src/services/groundFloor.js`. The probe goes
where the caller's point is (a vehicle or contact), not to the cell's centre,
and a cell is read up to four times at points about 17 m or more apart; the
lowest reading that passes the gate is kept. Before this, one probe at the
cell's centre latched for the session, so a centre on a roof lifted everything
in the cell (a Haymarket bus drew 23.5 m above the street, on the garage roof)
and a centre in the river put Red Line trains on the Longfellow Bridge 6–9 m
under the deck. Accepted limit: a cell holds one floor, so a vehicle on a
bridge or viaduct whose cell also gets a street-level probe beneath it is drawn
at that lower level.
## Vessel components and sources
`src/data/aisLiveVessels.js` assembles `createVesselLayer` from the
@@ -2542,7 +2558,7 @@ This is the current runtime/source-of-truth snapshot for the project.
> `HELD_SNAP_CONTRADICTION_M` (5 m) ABOVE the held value drops the hold and the
> contact is COLD again, back to the floored 2D billboard. The rule is
> ONE-SIDED on purpose — it targets BURIAL. A cell reading BELOW a real sample
> is the floor chain's expected under-read (one-shot latch over ~111 m,
> is the floor chain's expected under-read (lowest of up to four probes over ~111 m,
> neighbours lean lowest, `displayFloorHeightM` only ever raises), not evidence
> of anything, and a two-sided cut was disproved on the track rig by a planted
> cell 66.7 m below a real sample at the same spot. Accepted residual, stated