mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(globe): bring the Navara engine up to the shell contract
- camera.livePosition: one engine-owned Cartesian3, refreshed on read (the model replaces its state on every move); camera.height() - render.request(reason) takes the diagnostic reason and ignores it - maps.current() returns the sources as passed: the base imagery on the globe (none while tiles replace it) and the tiles shown - maps.releasePhotorealTiles forgets a source and takes its tiles away if they show - base imagery and photoreal share one switch order; tiles off brings back the last base imagery with its credit; imagery chosen while tiles show waits hidden, credit included - Navara QA runs the contract's maps checks with a Google 3D tiles source on the dev server's browser key: 58/58
This commit is contained in:
1 parent
a4ac0b9b0d
commit
840e34a881
5 files changed
+130
-10
No files matched your search
@@ -266,7 +266,15 @@ export function createCameraModel({
|
||||
}
|
||||
}
|
||||
|
||||
// camera.livePosition: one owned object, refreshed on read (place() and
|
||||
// sync() replace `state`, so it is copied rather than aliased).
|
||||
const livePosition = cartesian3.create();
|
||||
|
||||
const camera = {
|
||||
get livePosition() {
|
||||
return cartesian3.clone(state.position, livePosition);
|
||||
},
|
||||
height: () => cartographic.fromCartesian(state.position, WGS84).height,
|
||||
pose() {
|
||||
const current = view();
|
||||
const angles = headingPitchRoll(
|
||||
|
||||
Reference in new issue
Block a user