mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 08:42:21 +00:00
Fix the review findings across the engines, layers, data and QA
Navara now matches Cesium where the review found it diverging: a flight holds the camera inputs, camera.changed counts turns as Cesium does, render requests made during a frame survive it, follow pinches zoom, ground widths follow the pixel ratio and Cyber sonar reaches glyph caches and models. On Cesium, a staged imagery swap keeps loading tiles, setView replaces a running flight, and a cleared weather detail goes away. The contract gains MoverSet.failed, maps.terrainRevision, render.maxTextureSize and surface.sampleTerrainMostDetailed on every engine, so layers retry failed models, key road heights by terrain, size weather textures to the GPU and place Bhote Koshi cards on detailed terrain. Engine switches keep the live view, follows, focus, layer options and cards: a pick hands over the exact pose, applies no address options and pans no carried-over card; a history visit still applies its entry. Layers put GhostMaps pins, cable landings, OSM Places and directions on the measured surface without per-frame sampling, draw the Cockpit contact dot, hide disabled CCTV on attach, and keep ALPR running outside secure contexts. KML imports draw raised polygon fills, rotated and coloured ground overlays and north-referenced icon headings, and report files with nothing to draw. QA scripts read the contract instead of Cesium internals (test:track is 109/109 again), wait for the camera to rest before clicking, and give cold switches and parked engines realistic time. Docs follow the code.
This commit is contained in:
1 parent
69fbf5b38d
commit
0ef29781e5
276 files changed
+7217
-1517
No files matched your search
+8
-10
@@ -1,6 +1,6 @@
|
||||
// The Cyber HUD sonar's contact treatment on the globe engine, which draws
|
||||
// it (render.setContactSonar, the `contactSonar` capability: Navara's
|
||||
// sprite and point movers, Cesium's native draw commands and models). Each
|
||||
// movers, Cesium's native draw commands and models). Each
|
||||
// drawn frame hands the engine the theme's state, the sweep's settings and
|
||||
// its angle on the shared clock (the CSS sweep's), so the contacts and the
|
||||
// rings turn together; while the sweep runs over visible contacts a parked
|
||||
@@ -36,12 +36,9 @@ export function cyberSonarEngineState(
|
||||
};
|
||||
}
|
||||
|
||||
/** Sprite and point instances the engine draws (models keep their colours). */
|
||||
/** Every mover instance the engine holds, on screen or not. */
|
||||
const contactCount = (engine) =>
|
||||
engine.movers
|
||||
.list()
|
||||
.filter((set) => set.kind !== 'model')
|
||||
.reduce((count, set) => count + set.count, 0);
|
||||
engine.movers.list().reduce((count, set) => count + set.count, 0);
|
||||
|
||||
const UNSUPPORTED_MESSAGE =
|
||||
'Contact GPU unavailable. Native contacts remain visible.';
|
||||
@@ -85,12 +82,13 @@ export function createCyberSonarEngineScene(
|
||||
if (isCyberSonarActive({ root })) syncCyberSonarAnimation(root);
|
||||
engine.render.setContactSonar(cyberSonarEngineState(now(), root));
|
||||
});
|
||||
// Contacts the sweep passes over: the engine's movers, and what its own
|
||||
// treatment drew (Cesium's tinted models and visible native batches).
|
||||
// Contacts the sweep passes over on screen, as the engine's treatment
|
||||
// reports them (Navara's movers in view; Cesium's tinted models and
|
||||
// visible native batches); an engine without a report, all its movers.
|
||||
const contactsShown = () => {
|
||||
if (contactCount(engine)) return true;
|
||||
const drawn = diagnostics();
|
||||
return Boolean(drawn?.contacts || drawn?.gpu?.visibleCommands);
|
||||
if (!drawn) return contactCount(engine) > 0;
|
||||
return Boolean(drawn.contacts || drawn.gpu?.visibleCommands);
|
||||
};
|
||||
const removePostRender = engine.frames.postRender.addEventListener(() => {
|
||||
// A treatment lost while the scene is parked (Sonar OFF, reduced
|
||||
|
||||
Reference in new issue
Block a user