mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Paint detection from the overlay host's camera, off Cesium
The world overlay host now hands each paint lane the eye's height from the camera port's pose (cameraHeight) beside its position. Detection reads its view scale and label budget from it instead of the viewer's Cesium camera, measures box distances with plain arithmetic, and no longer keeps the viewer, so detection.js leaves the Cesium allow-list.
This commit is contained in:
1 parent
d0ca460313
commit
fa762f808e
4 files changed
+42
-14
No files matched your search
@@ -285,6 +285,8 @@ const _customPaintFrame = {
|
||||
viewProjectionMatrix: _scratchViewProjection,
|
||||
viewProjection: _viewProjectionScalars,
|
||||
cameraPosition: null,
|
||||
/** The eye's height above the ellipsoid (m), from the camera port's pose. */
|
||||
cameraHeight: Number.NaN,
|
||||
occluder: null,
|
||||
keyhole: null,
|
||||
uiRects: _uiOcclusionRects,
|
||||
@@ -1755,6 +1757,7 @@ function prepareCustomPaintFrame(timestamp, keyhole) {
|
||||
_customPaintFrame.dpr = _canvasDpr;
|
||||
_customPaintFrame.timestamp = timestamp;
|
||||
_customPaintFrame.cameraPosition = _eye;
|
||||
_customPaintFrame.cameraHeight = _eyeHeight;
|
||||
_customPaintFrame.occluder = _occluder;
|
||||
_customPaintFrame.keyhole = keyhole;
|
||||
_customPaintFrame.uiRectCount = _uiOcclusionRects.length;
|
||||
@@ -2859,6 +2862,7 @@ export function destroyWorldOverlay() {
|
||||
_customPaintFrame.dpr = 1;
|
||||
_customPaintFrame.timestamp = 0;
|
||||
_customPaintFrame.cameraPosition = null;
|
||||
_customPaintFrame.cameraHeight = Number.NaN;
|
||||
_customPaintFrame.occluder = null;
|
||||
_customPaintFrame.keyhole = null;
|
||||
_customPaintFrame.uiRectCount = 0;
|
||||
|
||||
Reference in new issue
Block a user