mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Merge main through #1532 into the renderer seam
Brings in voice camera tilt (#1520) and free look with globe-in-view recovery (#1532). The tilt and look maths in cameraVerbs.js and globeInView.js run on camera poses and the geo helpers instead of Cesium. The free-look height limit lives in the Cesium adapter (render/cesium/freeLookLimit.js), installed through the application viewer hooks; the globe-in-view recovery that main added to app/viewer.js runs on the camera port in app/globeInViewRecovery.js. The scene-mode checks are gone with the 2D and Columbus modes the seam does not draw.
This commit is contained in:
commit
96764f85ca
28 files changed
+4764
-145
No files matched your search
+6
-1
@@ -21,6 +21,7 @@ import {
|
||||
governorRequestRender,
|
||||
} from '../renderGovernor.js';
|
||||
import { describeError } from './errors.js';
|
||||
import { FREE_LOOK_MAX_HEIGHT_METERS } from '../globeInView.js';
|
||||
import { onLocaleChange, t } from '../i18n/index.js';
|
||||
|
||||
/**
|
||||
@@ -92,6 +93,10 @@ export async function createApplicationScene({
|
||||
defer(() => input.destroy());
|
||||
// Ctrl+wheel and trackpad pinches zoom the globe, not the page.
|
||||
renderer.input.ctrlWheelZoom = true;
|
||||
// What the adapter hands the application about its viewer; free look is
|
||||
// limited to low heights from the start.
|
||||
const viewerHooks = applicationViewerHooks(viewer);
|
||||
defer(viewerHooks.installFreeLookHeightLimit(FREE_LOOK_MAX_HEIGHT_METERS));
|
||||
registerDataCredits(viewer, credits);
|
||||
configureCreditKeyboardAccess(document);
|
||||
defer(onLocaleChange(() => configureCreditKeyboardAccess(document)));
|
||||
@@ -168,6 +173,6 @@ export async function createApplicationScene({
|
||||
// Trims stale draw commands, keeps an inline panel drawing, says
|
||||
// whether an entity is the viewer's own, and installs the zoom-out
|
||||
// guard (render/cesium/application.js).
|
||||
...applicationViewerHooks(viewer),
|
||||
...viewerHooks,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user