mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(render): the Cesium renderer passes every conformance check a page can run
- Cesium's own tweens (its flights) step on the renderer's clock, so the flight traces compare frame by frame; dispose gives the scene its own clock back. - moveStart and moveEnd are measured each tick on that clock, by the shared move detection, a change of the field of view or aspect included; Cesium's own events timed them by the system clock. - A follow of a drawn item tracks where the draw port draws it. - Pick rays are summed from the eye's axes: Cesium's lose about 1e-9 of direction at a near plane of 0.1 m. Ellipsoid picks and the view rectangle use them; a canvas with no size has none, as in Cesium. - The harness always runs the virtual clock and claims 120 checks: 119 pass on the page and query.heights skips. The five pointer traces need a camera controller there, and are recorded from Cesium's own controller in Node. - The package boundaries list the cesium plugin export and the modules its groups now import.
This commit is contained in:
1 parent
720932e1f9
commit
e9085e8df3
13 files changed
+545
-95
No files matched your search
@@ -206,14 +206,19 @@ export function bindFakeCesiumCamera(viewer, ports = {}) {
|
||||
tracks && typeof viewer.entities.add !== 'function'
|
||||
? trackingWidget(viewer)
|
||||
: viewer;
|
||||
const real = createCesiumCamera({
|
||||
const made = createCesiumCamera({
|
||||
scene,
|
||||
camera,
|
||||
...(tracks ? { widget } : {}),
|
||||
report: (error) => {
|
||||
throw error;
|
||||
},
|
||||
}).port;
|
||||
});
|
||||
const real = made.port;
|
||||
// The fake's own moveStart and moveEnd, which a test raises, are the
|
||||
// port's: with no ticks, the port measures no moves of its own.
|
||||
for (const event of ['moveStart', 'moveEnd'])
|
||||
fake[event]?.addEventListener?.(() => made.emit(event));
|
||||
const port = Object.create(real, {
|
||||
pose: {
|
||||
value() {
|
||||
|
||||
Reference in new issue
Block a user