mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 18:52:18 +00:00
Merge origin/main into german/navara
Main's work since the last merge runs on the globe contract where this branch draws through it: - Satellites take main's classes, sensors, ground-track bearings and world time through contract points and rings; launches take the world timeline. The satellite's cockpit subject dims, copies positions and refocuses through the contract. - Flights, military and vessels keep main's photos, retry cool-downs, world-clock motion and the ship bridge. Trail seeding in the shared aircraft tracking reads each layer's clock. - Traffic's flow lines and single build draw as ground sets; transit keeps dated credits and the new cities; CCTV opens the nearest camera, and the Quebec overlay projects and tests the horizon through the contract. Bikeshare's manager cleanup moved into its current lifecycle. - Draw keeps main's mark actions across engine switches. - The world clock in src/time is plain numbers again: Julian dates come from src/geo, the frame loop is injected, and the binding to Cesium's viewer clock lives in src/globe/cesium/worldTime.js. Navara's sky and sun follow the world time; live feeds keep the real time. - The cockpit's orbital view, with its sensor zoom, ground focus and satellite switching, stays Cesium-only for now: Navara hides its entry. Its Cesium calls live in src/globe/cesium/orbital.js. The ship bridge's finest-detail waterline sampling is Cesium-only too; Navara samples loaded geometry and detailed terrain. Both are in KNOWN-ISSUES. - Main's tests that built a Cesium scene by hand run on the fake engine. - The boundary manifest is regenerated, the coupling baseline records the orbital and bridge code, and the main-chunk baseline is raised to the merged size: main itself grew its main chunk by 93,959 bytes (gzip -9) since the previous merge base.
This commit is contained in:
commit
2a761aa5eb
452 files changed
+73437
-1752
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// The Navara globe for the app's experimental engine mode: builds the view
|
||||
// the product way (viewOptions.js) and the GlobeEngine on it. Load it with a
|
||||
// dynamic import() so Navara stays out of the Cesium-mode bundle.
|
||||
import { worldClock, worldTimeFor } from '../../time/worldClock.js';
|
||||
|
||||
import ThreeView, { Color as NavaraColor, MeshDesc } from '@navaramap/three';
|
||||
import * as geo from '../../geo/index.js';
|
||||
@@ -114,8 +115,7 @@ function groundInView(engine) {
|
||||
* hd?: boolean,
|
||||
* }} options `search`, the page's query string, picks the look from
|
||||
* `?look=` (cinematic by default); `hd` draws at the device pixel ratio
|
||||
* with MSAA (Navara HD), else at CSS pixels without it. The sun follows the engine clock (the
|
||||
* page's app clock): the look reads its frame time.
|
||||
* with MSAA (Navara HD), else at CSS pixels without it. The sun follows the world time.
|
||||
* @returns {Promise<{ setRenderLoop: (enabled: boolean) => void, engine: import('../contract.js').GlobeEngine, destroy: () => void }>}
|
||||
*/
|
||||
export async function createNavaraGlobe({ container, search, hd = false }) {
|
||||
@@ -139,9 +139,8 @@ export async function createNavaraGlobe({ container, search, hd = false }) {
|
||||
const plan = navaraScenePlan(resolveNavaraLook(search), {
|
||||
mobile: Boolean(view.isMobileOptimized?.()),
|
||||
});
|
||||
// The sun follows the engine clock (one time source for layers and the
|
||||
// look); the look only runs in preRender, after the engine exists.
|
||||
look = buildNavaraLook(view, plugin, plan, () => engine.clock.frameTime(), {
|
||||
// The sky follows the timeline; live feeds keep the engine's app clock.
|
||||
look = buildNavaraLook(view, plugin, plan, worldTimeFor('sky'), {
|
||||
forEachLuminanceUniform,
|
||||
});
|
||||
// The look's shadowed sun leaked a light per frame (internals.js).
|
||||
@@ -208,6 +207,7 @@ export async function createNavaraGlobe({ container, search, hd = false }) {
|
||||
placed &&
|
||||
plan.globeLighting &&
|
||||
automaticLandscape &&
|
||||
worldClock.isLive() &&
|
||||
(engine.maps.baseKind === 'sentinel2' ||
|
||||
engine.maps.baseKind === 'esri-imagery');
|
||||
if (container.hasAttribute('data-terrain-daylight') !== landscape)
|
||||
|
||||
Reference in new issue
Block a user