mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Add depth-classified earthquakes on Navara
Match native ground footprints, encoded alpha and source ordering on real terrain and photoreal tiles while excluding forward meshes. Cache static screen data and reduce large-disc edge work without changing GPU pixels. Add deterministic lifecycle, source/share, foreground/horizon and three-context performance proof; restore credits for available Navara feeds and retain failure history in migration evidence.
This commit is contained in:
1 parent
c89185f352
commit
a3152ab719
14 files changed
+1106
-16
No files matched your search
@@ -2,7 +2,11 @@
|
||||
// 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 ThreeView, { MeshDesc } from '@navaramap/three';
|
||||
import ThreeView, {
|
||||
MeshDesc,
|
||||
EffectDesc,
|
||||
Effect as NavaraEffect,
|
||||
} from '@navaramap/three';
|
||||
import * as geo from '../../geo/index.js';
|
||||
import { DefaultPlugin } from '@navaramap/three-default-plugin';
|
||||
import { createNavaraEngine } from './createNavaraEngine.js';
|
||||
@@ -187,6 +191,8 @@ export async function createNavaraGlobe({
|
||||
view,
|
||||
engine,
|
||||
MeshDesc,
|
||||
EffectDesc,
|
||||
NavaraEffect,
|
||||
destroy() {
|
||||
if (destroyed) return;
|
||||
destroyed = true;
|
||||
|
||||
@@ -901,10 +901,27 @@ export function createContractSuite(
|
||||
),
|
||||
`a pickable: false sprite was picked (${JSON.stringify(onQuiet.picked?.id)})`,
|
||||
);
|
||||
const onLine = await clickAt(at(20, 9));
|
||||
const linePosition = at(20, 9);
|
||||
const lineCameraBefore = cartesian3.clone(
|
||||
engine.camera.pose().position,
|
||||
);
|
||||
const onLine = await clickAt(linePosition);
|
||||
ensure(
|
||||
onLine.picked?.id === 'line-1',
|
||||
`a click on the line picked ${JSON.stringify(onLine.picked?.id)}`,
|
||||
`a click on the line picked ${JSON.stringify(onLine.picked?.id)}; ${
|
||||
onLine.picked?.id === 'line-1'
|
||||
? ''
|
||||
: JSON.stringify({
|
||||
event: onLine.position,
|
||||
projectedNow: screen(linePosition),
|
||||
directNow: engine.picker.pick(onLine.position)?.id,
|
||||
drilled: (onLine.drilled ?? []).map(({ id }) => id),
|
||||
cameraMovedM: cartesian3.distance(
|
||||
lineCameraBefore,
|
||||
engine.camera.pose().position,
|
||||
),
|
||||
})
|
||||
}`,
|
||||
);
|
||||
const target = screen(a);
|
||||
const movesBefore = moves.length;
|
||||
|
||||
Reference in new issue
Block a user