Keep shape radii, rim gradients, depth-fail looks, sweep cadence and step camera moves out of the renderer contract

Shapes take their radii in metres; the world annotation ring follows the
camera height itself (ringRadiusAt), resizing on preRender. The radial rim
preset and depthBias go: the launch pad zone draws a canvas image fill made
by the layer. Solid and dashed lines take one depthFail look (solid or
dash) in place of depthFailColor and depthFailDash. sonarCadenceHz goes from
the quality settings: nothing set it, and the sweep moves every 80 ms.

Camera move, look, rotateAround and zoom leave the camera port: the app's pans,
in-place turns, globe turns and zooms are setView views summed over the pose
(geo/eyeMoves), and the Cesium port places a view by direction and up
exactly rather than through heading, pitch and roll. The conformance driver
runs those script steps through setView; the lookAt script turns in place
where it turned about the frame-local axis, and its reference is recorded
again.
This commit is contained in:
Sameh Khamis committed 2026-11-10 04:08:41 -08:00
1 parent 7a376ebefc
commit c8346c9fda
44 files changed
+810 -799

No files matched your search

+7 -8
View File
@@ -55,14 +55,13 @@ function fixture({ holdFirst = false } = {}) {
positionCartographic: { height: 1000 },
moveEnd: { addEventListener() {} },
cancelFlight() {},
zoomIn(n) {
position.x -= n;
state.height -= n;
this.positionCartographic.height = state.height;
},
zoomOut(n) {
position.x += n;
state.height += n;
// Looking straight down at the surface along -x.
directionWC: { x: -1, y: 0, z: 0 },
upWC: { x: 0, y: 0, z: 1 },
rightWC: { x: 0, y: 1, z: 0 },
setView({ destination }) {
state.height -= position.x - destination.x;
position.x = destination.x;
this.positionCartographic.height = state.height;
},
},
+3 -2
View File
@@ -21,6 +21,7 @@ import {
toRadians,
} from '../geo/index.js';
import { sphereFromPoints } from '../geo/sphere.js';
import { eyeZoomed } from '../geo/eyeMoves.js';
import {
cameraOf,
findCamera,
@@ -3429,7 +3430,7 @@ function adjustCameraZoom(viewer, args) {
camera.cancelFlight();
if (direction === 'out') {
camera.zoom(-movementM);
camera.setView(eyeZoomed(before, -movementM));
} else {
const safeMovementM = Math.min(
movementM,
@@ -3444,7 +3445,7 @@ function adjustCameraZoom(viewer, args) {
error: 'Camera is already at the minimum target distance',
};
}
camera.zoom(safeMovementM);
camera.setView(eyeZoomed(before, safeMovementM));
}
const after = camera.pose();
+7 -9
View File
@@ -184,15 +184,13 @@ function compositionFixture(
positionCartographic: { height: state.height },
moveEnd: { addEventListener() {} },
cancelFlight() {},
zoomIn(metres) {
position.x -= metres;
state.height -= metres;
this.positionCartographic.height = state.height;
state.zooms++;
},
zoomOut(metres) {
position.x += metres;
state.height += metres;
// Looking straight down at the surface along -x.
directionWC: { x: -1, y: 0, z: 0 },
upWC: { x: 0, y: 0, z: 1 },
rightWC: { x: 0, y: 1, z: 0 },
setView({ destination }) {
state.height -= position.x - destination.x;
position.x = destination.x;
this.positionCartographic.height = state.height;
state.zooms++;
},