mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
fix(street-level): ground under the camera on Google 3D; tilted views load what they look at
Two regressions from the slimming, found in review: - Google 3D hides the globe, so groundUnderCamera returned null once the ground caster was gone: in high cities (Denver ~1,600 m) the camera read kilometres too high, the coverage zoom came out coarse and the visible box slid kilometres ahead. With the globe hidden (or not yet loaded) the ground now comes from the rendered surface (scene.sampleHeight), checked for plausibility and ignored when above the camera. The plausibility check is shared with photo framing (plausibleSurfaceHeight, sampledSurfaceHeight). - Tiles were ranked from the camera's ground point alone, so a tilted view from a few kilometres up (z13) could miss the tile at the centre of the screen. They are ranked from viewFocus: halfway between that point and the ground at the screen centre (or the nadir when the centre ray misses). A test pins the 3 km / 70° case: the nadir ranking leaves the centre tile out, the focus ranking loads it. Also ignore .playwright-mcp/: its browser console logs can carry tokens. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
346245e8e7
commit
8706cafdd1
5 files changed
+148
-29
No files matched your search
@@ -16,6 +16,8 @@ output/
|
||||
.gev-cache/
|
||||
# Browser QA gate evidence (screenshots, console and network dumps).
|
||||
qa-artifacts/
|
||||
# Playwright MCP session logs: browser consoles can carry tokens in URLs.
|
||||
.playwright-mcp/
|
||||
.DS_Store
|
||||
.gstack/
|
||||
3d-models/
|
||||
|
||||
Reference in new issue
Block a user