mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Draw Bhote Koshi and awareness pulses through engine.ground
Render the Bhote Koshi event and locator through one ground and point display. Keep Cesium's reveal paths, dashed halo, glowing core, polygon classification, pick identities and independent point outline opacity. Add static pixel dash masks, synchronous ground reveals after terrain bounds load, and per-point outline colour so the shared display preserves those behaviours. Add a ground pulse field with checked state on all three engines. Keep Cesium's raised material disc, band equations, front widths, wake and rest timing and reduced-motion behaviour. Navara now follows Cesium's raised pulse surface and story styling, with ground effects composed after tone mapping. Move the wind mesh shader into the Navara engine without changing its transparent pass. Layer renderer lines fall from 210 to 14 for Cesium and from 794 to 314 for Navara. Viewer lines fall from 953 to 948, extension reads from 6 to 4, and engine-name lines from 37 to 36. No coupling count grows. Checked in the browser, keyless: the contract suite, with its new pulse pixel checks, passes on Navara and on Cesium apart from the camera-events check that also fails intermittently before; the Nepal locator and Contacts engine switches pass. The Nepal event and wind engine switches fail the same way before this change. Side by side at the locator's overview, Cesium draws the same pixels as before and Navara's river corridor now glows as Cesium's does, where it was faint.
This commit is contained in:
1 parent
dacfd33f10
commit
f385986383
50 files changed
+1438
-520
No files matched your search
+17
-33
@@ -119,28 +119,20 @@ const perEngine = (engines) =>
|
||||
/** Navara's own view and classes, for the renderers that still use them. */
|
||||
const navaraNative = (engine) => engine.extensions.navara;
|
||||
|
||||
// Navara's backends of the Bhote Koshi and wind displays, loaded only
|
||||
// here, through import(), when a page loads Navara's renderers: the story
|
||||
// entities sampled into Navara's view (Cesium draws them itself) and the
|
||||
// wind's flow mesh.
|
||||
const navaraStory = async () => {
|
||||
const { drawStorySource } =
|
||||
await import('../../layers/shared/render/navaraStory.js');
|
||||
return {
|
||||
drawStory: (engine, data) =>
|
||||
drawStorySource(engine, navaraNative(engine), data),
|
||||
};
|
||||
};
|
||||
// Wind streamlines retain their engine backends.
|
||||
const cesiumWindFlow = async () => {
|
||||
const { createWindCesiumFlow } =
|
||||
await import('../../layers/wind/render/cesiumFlow.js');
|
||||
return { flow: createWindCesiumFlow };
|
||||
};
|
||||
const navaraWindFlow = async () => {
|
||||
const { createWindNavaraFlow } =
|
||||
await import('../../layers/wind/render/navaraFlow.js');
|
||||
const [{ createWindNavaraFlow }, { createWindFlowMesh }] = await Promise.all([
|
||||
import('../../layers/wind/render/navaraFlow.js'),
|
||||
import('../../globe/navara/windFlowMesh.js'),
|
||||
]);
|
||||
return {
|
||||
flow: (engine) => createWindNavaraFlow(engine, navaraNative(engine)),
|
||||
flow: (engine) =>
|
||||
createWindNavaraFlow(engine, navaraNative(engine), createWindFlowMesh),
|
||||
};
|
||||
};
|
||||
|
||||
@@ -149,15 +141,15 @@ const displays = () => import('./displays.js');
|
||||
|
||||
/** How every application layer draws, by id, in directory order. */
|
||||
export const LAYER_MANIFEST = Object.freeze({
|
||||
// The Bhote Koshi event's imagery on engine.imagery; the event's and the
|
||||
// locator's story entities draw on Cesium itself, or through Navara's
|
||||
// story backend.
|
||||
'bhote-koshi-2026': display('createBhoteKoshiDisplay', ['imagery'], {
|
||||
navara: navaraStory,
|
||||
}),
|
||||
'bhote-koshi-locator': display('createBhoteKoshiLocatorDisplay', ['movers'], {
|
||||
navara: navaraStory,
|
||||
}),
|
||||
'bhote-koshi-2026': display('createBhoteKoshiDisplay', [
|
||||
'imagery',
|
||||
'ground',
|
||||
'movers',
|
||||
]),
|
||||
'bhote-koshi-locator': display('createBhoteKoshiLocatorDisplay', [
|
||||
'ground',
|
||||
'movers',
|
||||
]),
|
||||
// The aircraft family.
|
||||
flights: display('createFlightsDisplay', ['movers', 'lines']),
|
||||
military: display('createMilitaryDisplay', ['movers', 'lines']),
|
||||
@@ -190,15 +182,7 @@ export const LAYER_MANIFEST = Object.freeze({
|
||||
'movers',
|
||||
'ground',
|
||||
]),
|
||||
// Global Context's display, with the Navara backend of its range pulses
|
||||
// (render/pulseDisc.js).
|
||||
'military-awareness': display('createAwarenessDisplay', ['lines'], {
|
||||
navara: async () => ({
|
||||
navaraPulses: (
|
||||
await import('../../layers/awareness/render/navaraPulses.js')
|
||||
).createAwarenessPulseDisc,
|
||||
}),
|
||||
}),
|
||||
'military-awareness': display('createAwarenessDisplay', ['lines', 'ground']),
|
||||
// The wind field and the weather rasters on engine.imagery; the wind's
|
||||
// streamlines are each engine's backend (Cesium's wind renderer, Navara's
|
||||
// flow mesh).
|
||||
|
||||
@@ -91,7 +91,7 @@ test('the layers drawn through one display, and the ones that draw without one',
|
||||
// Engine-specific options of a display: the Navara backends.
|
||||
assert.deepEqual(
|
||||
kinds((entry) => Object.keys(entry.backends ?? {}).length),
|
||||
['bhote-koshi-2026', 'bhote-koshi-locator', 'military-awareness', 'wind'],
|
||||
['wind'],
|
||||
);
|
||||
assert.deepEqual(Object.keys(LAYER_MANIFEST.cctv.backends), []);
|
||||
assert.ok(LAYER_MANIFEST.cctv.needs.includes('meshes'));
|
||||
|
||||
Reference in new issue
Block a user