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

+6 -3
View File
@@ -67,6 +67,7 @@ import {
toRadians,
vec,
} from './geo/index.js';
import { eyeMoved, eyeRotatedAbout, eyeTurned } from './geo/eyeMoves.js';
import { heightsOf } from './queries/heights.js';
import {
cameraOf,
@@ -1083,7 +1084,7 @@ function lookWithinFrame(camera, m, look, angle) {
if (allowed < owed) allowed = owed;
m.turnedRad += allowed;
}
if (allowed > 0) camera.look(look, allowed);
if (allowed > 0) camera.setView(eyeTurned(camera.pose(), look, allowed));
// The pose this turn leaves, for a turn that continues from it.
if (_lookBaseline) _lookBaseline.direction = camera.pose().direction;
if (allowed < angle) interruptCameraMotion('globe-out-of-frame');
@@ -1343,7 +1344,9 @@ function onTick() {
? heightM * ONCE.panViewFraction * (scale - (m.lastScale || 0))
: heightM * PAN_VIEW_FRACTION_S[m.speed] * dt;
m.lastScale = scale;
camera.move(PAN_MOVES[m.direction] ?? 'down', step);
camera.setView(
eyeMoved(camera.pose(), PAN_MOVES[m.direction] ?? 'down', step),
);
} else if (m.kind === 'tilt') {
tickTilt(camera, m, scale, dt);
} else if (m.kind === 'rotate' || m.kind === 'rotate_globe') {
@@ -1377,7 +1380,7 @@ function onTick() {
interruptCameraMotion('globe-surface-limit');
return;
}
camera.rotateAround(m.rotationAxis, angle);
camera.setView(eyeRotatedAbout(pose, m.rotationAxis, angle));
} else {
lookWithinFrame(
camera,