ADR-0083: The port's world is the anchor's frame, and its camera is the scene's carried into it

1,470 words

Status: accepted · 29 Nov 2026. Builds on ADR-0076 and ADR-0078.

Context

The port takes the scene through one matrix, world to ECEF, and a camera. It was handed render space and the scene's own camera. The report: standing on Earth with the clock at 1×, the clouds flicker wildly, two or three times a second by eye; paused, the same view converges and holds, and moving about a paused scene is clean.

The port keeps histories. Its march resolves sixteen frames into one and finds where a cloud stood a frame ago by the view matrix it was handed then, applied to the cloud's point in the world it is handed now (CameraUniforms' reprojection). Its shadow atlas resolves over time through the cascades' matrices of the frame before, and a cascade held over from an earlier frame is read through the matrix it was rendered with. All three assume a world the clouds stand still in.

Render space is not one (ADR-0003). Its origin is a snapped point of the system's frame, and its axes do not turn with a body. On the rig, at 39.3°N 102.8°W and 58 m over the ground with the clock running, on the dev build at 1600 × 900:

Over 30 frames at 60 Hz Moves
The scene camera's render position 485 m a frame, Earth's velocity
The same, when the origin is taken back 3.6 km, every tenth frame
The eye in the port's ECEF nothing: 804.138 m over the datum, drift 0.000 m

The clouds are fixed to the body and travel with the eye, so the placement is right and the history is read as if the camera had flown 485 m past standing clouds, and 3.6 km on the frame of a rebase.

At the size of the recording that reported it, 1653 × 989 at DPR 2, the rig holds 26 Hz, as the recording does, and a frame is 2.3 times as long. At 30°N 85°W at dawn, over 240 frames, neighboring frames differ by a median of 7.93 levels of 255 at 160 × 90, and on 38 of them the mean luminance stands more than 4 levels off the frames three before and three after, 4 to 10 frames apart. On the one looked at, as on the recording's, a cloud's dark base draws lit. The report's rate is by eye, and nothing here ties a rate to it.

Decision

The port's world is the anchor's frame, which a point of the served body keeps its place in, and the port's camera is the scene's carried into that frame. Render space reaches the port only through that carry.

  • The placement's matrix is two. cloudsPlacement answers render space to the anchor's frame (worldToAnchor: up +X, east +Y, north +Z about the anchor's datum point) and the product on to ECEF as before. The anchor's frame to ECEF is ANCHOR_TO_ECEF, the same for every anchor and every frame, and it is the context's and the air's world-to-ECEF.
  • The port has a camera of its own (render/cloudsCamera.ts): the scene camera's world matrix through worldToAnchor, with its projection, clip planes and depth convention. The pass, its shadow and the air it reads take that camera. It is stood once a frame, in beforeScene, on the matrices the scene draws with, so the shadow prepared there and the march after it find one camera. The two cameras put a point at one place in view space, so a depth the scene wrote is the depth the port reads it as. The scene's camera is a perspective one, and the chain refuses another: the port picks its depth decoder and fits its cascades by the kind.
  • A material asks the shadow at a render-space point. follow is handed this frame's render space to ECEF, and reads the port's cascades and view from ECEF on, which are the anchor's frame's.
  • A new anchor is a new world, and resets the histories, as it did.
  • A march outside a frame starts the histories again. three runs a node's updateBefore while it compiles it, so warm marches the port with the camera and the matrices the last frame left. A chain that has drawn resets after it, and one that has not resets on its first frame.

Alternatives considered

Carrying the previous view matrix into this frame's render space. The march's reprojection would hold: the previous view times the previous world-to-ECEF's inverse times this frame's. The shadow's temporal resolve and its held cascades need the same in two more places, all three inside the port's built code, as a patch carried against every release.

Anchoring render space to the served body. Render space is every placed thing's. An origin fixed to one body moves and turns the stars, the sun and every other body through it instead, for the sake of one reader.

Resetting the port's history when the origin moves. At 60 Hz the origin's rebase is one frame in ten. The other nine read 485 m off.

Consequences

On the rig with the clock at 1×, the mean absolute difference of luminance between neighboring frames at 160 × 90, in levels of 255, and the frames whose mean stands more than 4 levels off the frames three before and after:

Where, and at what The port's world Median Largest Off by 4
39.3°N 102.8°W by day, 1600 × 900, 60 Hz, 60 frames render space 1.80 3.49 0
the same the anchor's 0.20 0.22 0
the same, the clock held the anchor's 0.05 0.05 not counted
30°N 85°W at dawn, 1653 × 989 DPR 2, 26 Hz, 240 frames render space 7.93 16.60 38
the same the anchor's 0.11 0.13 0

The first row has a peak every tenth frame, the origin's own interval there. The held still is the same picture in both worlds. With the clock running, from 6 km over the first stance the shadows lie beside their clouds at a median of 0.16, and E1's orbit, 401 km up, holds 0.21.

The capture's own clock cast on the ground (weather-g1-fair at clock-1x), on a production build at 1440 × 900 and DPR 2, read by the step detector against its clouds-off control: 196 steps the control lacks with render space as the world, and none with the anchor's frame. Both takes ran at 38 Hz and hold three quarters of the path's 300 frames. The detector's ruling allows 3% of them missing, so neither is a ruled result.

  • The port's camera stands as far from its world's origin as the eye is from the anchor. Render space keeps the scene's camera within 4,096 m an axis. The anchor's frame keeps the port's within the anchor's 20 km along the ground and at the eye's own height: 400 km at E1 and 13,622 km at E3, where one float32 step of the view matrix's translation is 3 cm and 1 m. The march's ray starts from the camera's ECEF position, a float32 at the eye's distance from Earth's center in either world: half a meter a step from the ground to E1, and 2 m at E3. No defect is measured from the view matrix's step, and none is looked for past 401 km.
  • A new anchor's first shadow is resolved through the old anchor's cascades. On a reset the port clears its shadow history and then resolves as on any frame, by the cascades' matrices of the frame before, which stand in the anchor's frame that was. They decide which texels of that one frame take the new sample alone and which blend it with the cleared history. It is not looked at on the rig.
  • The port's setup inspection reads one camera for the pass and the air. Both hold the port's, so it reports no mismatch.
  • No test in CI builds the chain. cloudsCamera.test.ts holds the carry and cloudsShadow.gpu.test.ts the shadow's two worlds, and both pass with the chain's own call to follow taken out: the chain needs a renderer and the port's textures. The clock casts hold the wiring, on the rig.
  • Every still and cast taken of the port held its instant. A held instant is what makes two takes the same frames, and it is the one condition a history that fails under a running clock cannot show under. The catalogue's clock casts run the clock, and none had been taken of the port.