mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Record Cesium references for the quad, mesh and field scenes
Every conformance scene now has a reference. The quad and mesh views look at their item's middle, where the mesh's base was cut off at the bottom of the frame before.
This commit is contained in:
1 parent
46d44eed89
commit
72a322f7ce
6 files changed
+14
-8
No files matched your search
@@ -298,11 +298,11 @@ The scenes load nothing from the network.
|
||||
`window.conformance.runScenes()` and `runLogic()` do the same from a script.
|
||||
Browser checks use the chrome-devtools MCP against a page in its own window.
|
||||
|
||||
The Cesium scene renderer (`src/render/cesium/sceneRenderer.js`) draws the
|
||||
icon, point, line, shape, model and city scenes, and the references were
|
||||
recorded with it. It has only the members the scenes need. The quad, mesh
|
||||
and field scenes have no reference yet. Each family's reference
|
||||
is recorded when the Cesium renderer gains that family.
|
||||
The Cesium scene renderer (`src/render/cesium/sceneRenderer.js`) draws
|
||||
every scene (icons, points, lines, shapes, models, quads, meshes, fields
|
||||
and the city), and the references were recorded with it, on a GPU: a
|
||||
software rasterizer such as SwiftShader draws the glow line differently.
|
||||
It has only the members the scenes need.
|
||||
|
||||
Some behaviour is only drawn, so the logic checks cannot see it: course
|
||||
easing (`courseGlide`), and a hidden row keeping its eased
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
@@ -16,6 +16,9 @@
|
||||
"city-street.png",
|
||||
"shapes-top.png",
|
||||
"shapes-tilted.png",
|
||||
"shapes-lit-tilted.png"
|
||||
"shapes-lit-tilted.png",
|
||||
"quads-oblique.png",
|
||||
"meshes-oblique.png",
|
||||
"fields-regional.png"
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
@@ -427,7 +427,8 @@ export const REFERENCE_SCENES = Object.freeze([
|
||||
]);
|
||||
return disposeAll(set);
|
||||
},
|
||||
views: [{ name: 'oblique', view: over(1500, -0.5, 0, offset(0, -1600)) }],
|
||||
// Looking at the card's middle, 200 m up: (1500 - 200) / tan(0.5) ahead.
|
||||
views: [{ name: 'oblique', view: over(1500, -0.5, 0, offset(0, -2380)) }],
|
||||
},
|
||||
{
|
||||
id: 'meshes',
|
||||
@@ -453,7 +454,9 @@ export const REFERENCE_SCENES = Object.freeze([
|
||||
]);
|
||||
return disposeAll(set);
|
||||
},
|
||||
views: [{ name: 'oblique', view: over(1200, -0.5, 0, offset(0, -1400)) }],
|
||||
// Looking at the pyramid's middle, 150 m up: (1200 - 150) / tan(0.5)
|
||||
// ahead.
|
||||
views: [{ name: 'oblique', view: over(1200, -0.5, 0, offset(0, -1920)) }],
|
||||
},
|
||||
{
|
||||
id: 'fields',
|
||||
|
||||
Reference in new issue
Block a user