mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
7a376ebefc
commit
c8346c9fda
44 files changed
+810
-799
No files matched your search
@@ -294,7 +294,7 @@ export function createCalibrationGizmo({
|
||||
// Standard gizmo convention: parts behind geometry stay clearly
|
||||
// visible, just dimmed (a street-level mount buries half the heading
|
||||
// ring in sloped photogrammetry tiles — smoke-tested 2026-07-05).
|
||||
depthFailColor: rgba(color, 0.45),
|
||||
depthFail: { kind: 'solid', color: rgba(color, 0.45) },
|
||||
show: shown,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ test('the gizmo draws its parts through the draw port, shown in ADJUST mode only
|
||||
assert.equal(ring.widthPx, 3);
|
||||
assert.equal(ring.positions.length, 97, 'a closed 96-segment ring');
|
||||
assert.ok(Math.abs(ring.style.color[3] - 0.9) < 1e-12);
|
||||
assert.ok(Math.abs(ring.depthFailColor[3] - 0.45) < 1e-12);
|
||||
assert.ok(Math.abs(ring.depthFail.color[3] - 0.45) < 1e-12);
|
||||
const arrow = lines.items.get(`${GIZMO_ID_PREFIX}move-up`);
|
||||
assert.equal(arrow.style.kind, 'arrow');
|
||||
assert.equal(arrow.widthPx, 12);
|
||||
|
||||
@@ -126,7 +126,7 @@ export function createTrail(viewer, { color, width = 2.5 }) {
|
||||
style: { kind: 'solid', color: colorAt(color, alpha) },
|
||||
// The owner-locked rule (round 6): a segment below the photoreal
|
||||
// mesh renders dimmed — it must never disappear into the ground.
|
||||
depthFailColor: colorAt(color, occludedAlpha),
|
||||
depthFail: { kind: 'solid', color: colorAt(color, occludedAlpha) },
|
||||
};
|
||||
drawn.set(id, { key, item });
|
||||
lines.upsert([item]);
|
||||
|
||||
@@ -34,7 +34,10 @@ test('a trail draws its history as one dimmed-when-hidden geodesic line', (t) =>
|
||||
assert.equal(line.mode, 'geodesic');
|
||||
assert.equal(line.style.kind, 'solid');
|
||||
assert.deepEqual(line.style.color, [0, 212 / 255, 1, 0.85]);
|
||||
assert.deepEqual(line.depthFailColor, [0, 212 / 255, 1, 0.4]);
|
||||
assert.deepEqual(line.depthFail, {
|
||||
kind: 'solid',
|
||||
color: [0, 212 / 255, 1, 0.4],
|
||||
});
|
||||
|
||||
// The same positions again change nothing; fewer than two distinct hide it.
|
||||
const writes = set.writes;
|
||||
@@ -65,7 +68,7 @@ test('a trail head is a line of its own beside the history, at the head alphas',
|
||||
);
|
||||
assert.equal(findPickOwner(head.id), 'trails');
|
||||
assert.equal(head.style.color[3], 0.9);
|
||||
assert.equal(head.depthFailColor[3], 0.45);
|
||||
assert.equal(head.depthFail.color[3], 0.45);
|
||||
assert.equal(head.mode, '3d', 'short: straight, two positions a frame');
|
||||
// No head: hidden once, then nothing more to write.
|
||||
trail.setHead(null);
|
||||
|
||||
Reference in new issue
Block a user