Skip to content

1.16 part 14/18: 3D: flying, the Go to sheet, the HUD and touch - #185

Closed
epheterson wants to merge 1 commit into
line/1.16.0-13-3d-worldsfrom
line/1.16.0-14-3d-controls
Closed

epheterson wants to merge 1 commit into
line/1.16.0-13-3d-worldsfrom
line/1.16.0-14-3d-controls

Conversation

@epheterson

@epheterson epheterson commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Part 14 of 18 of Zimi 1.16.0: 3D: flying, the Go to sheet, the HUD and touch. Base: line/1.16.0-13-3d-worlds (part 13); the diff shows only this part's files. The PR carries the not-a-release label and the version stays 1.15.7, so merging it cuts no release. Merge in order (1 to 17, then 18) with a merge commit, not a squash.

What this is

How a person moves and steers in the 3D view: the UFO and its flights, the capability levels that decide what a device draws, and the browser tests that hold the Go to sheet, the controls layer and the touch rules. Two new scripts carry the code; the Go to sheet, the controls layer and the info corner live in almanac-earth.js (part 13), so most of this part is the tests that drive them on an emulated phone.

What changes

  • zimi/static/almanac-fly.js (new, 1,319 lines): the UFO, loaded on the first press of Fly. Speed follows one law at every scale (full throttle is always AF_TAU_S from the nearest surface), the craft never moves the clock, and it goes round any world in its way (_afWay, _afMove).
  • zimi/static/almanac-fly.js: input on both devices. Keys W A S D, the arrows, Space, C, Q E and L on a keyboard; on a phone a spring-back throttle lever and a drag layer that looks, rolls with two fingers, and flies to a tapped world (_afBindLayer, _afTap).
  • zimi/static/almanac-fly.js: the camera stands off the craft and keeps a world in frame (_afCamera), the autopilot (_aeFlyGoTo, _afPreset) stops where the world spans two thirds of the picture's shorter side, and the readout gives speed in real units and the Sun's light time.
  • zimi/static/almanac-fly.js: hooks the mission player and Stand here also use (_aeShipStep, _aeShipCam, _aeShipNear, _aeShipDraw, _afLand, _afTakeOff).
  • zimi/static/capability.js (new, 426 lines): ZimiCap picks a level (low, standard or high) from device signals, with Auto, Light and Full in the gear. A governor steps the pixel ratio, then the frame rate, down on slow frames and back up on easy ones, so the view slows but is never cut. It also holds the GPU memory budget and watches for a lost context.
  • zimi/static/capability.js: the gear's "better online" rows read /manage/outbound, and only for an admin; its settings are stored on the device (zimi_cap).
  • zimi/static/almanac-debug3d.js (new): a log viewer shown only after ?debug3d=1 has switched the 3D debug log on.
  • Tests: test_almanac_go_sheet_browser.py, _sheet_*, _drawer_, _edge_buttons_, _controls_toggle_, _corners_, _phonefix_, _ux3d_ and _hud_contract_ cover the sheet, the buttons, the tap-to-hide rule and the one contract every mode obeys.

How to review

  • Start with: almanac-fly.js _afMove and _afHugVel (speed, floor and the circle-a-world rule) and _aeShipStep (frame order against the camera); capability.js frame and decide (when a step down fires, and that a step never sticks).
  • Risk: touch handling in _afBindLayer on a phone (a touch stays with its start element on iOS); capability.js watchContext and choose, which can set the view aside; frame cost of the hooks on every 3D frame.
  • Skip: nothing generated or vendored; the large test files (test_almanac_ux3d_browser.py, test_almanac_rig_browser.py, test_almanac_fly_browser.py) are tours and need not be read in full.
  • Rides here: almanac-fly.js and test_almanac_rig_browser.py refer to stand, site and mission state that lands in parts 15 and 16, guarded by typeof. test_almanac_ux.cjs and .spec.mjs follow the orrery and hint changes of part 13. test_capability.cjs, test_almanac_touch_layer_browser.py, _pushin_, _sheet_polish_ and _label_touch_ are named for this part but first pass in part 16.

Tests

  • Fly (test_almanac_fly_browser.py, _flyroll_, _flight_clearance_, _rig_): the file is fetched on first press and not before, keys and levers move and turn it, no flight passes through a body, the picture stays north-up, and a craft outlives a camera visit.
  • Controls (test_almanac_hud_contract_browser.py, _edge_buttons_, _controls_toggle_, _drawer_): one tour of every mode at 390 x 844, upright and on its side, checks each rule by stop; rules not yet met are listed in the test.
  • Go to sheet (test_almanac_go_sheet_browser.py, _sheet_regroup_, _sheet_cover_, _sheet_, _rowmarks_): the keyboard, Map here only for an installed map, three parts of the list, nothing cut off.
  • Capability (test_capability_browser.py, test_capability_one_address.py): the view opens on software GL, the gear's choice is kept, and one address serves the loader and the Almanac.
  • View and page (_view_targets_, _travel_, _sbs_fade_, _corners_, _phonefix_, _ux3d_): article links land on the thing, a fast clock clips nothing, Side by side cross-fades.
  • Everything here except test_capability_one_address.py, test_almanac_ux.cjs and test_almanac_ux.spec.mjs needs a browser and runs in the whole matrix.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@epheterson epheterson added the not-a-release Ships nothing; CI skips the version check label Nov 23, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Sorry @epheterson, your pull request is larger than the review limit of 150,000 diff characters

@epheterson
epheterson force-pushed the line/1.16.0-13-3d-worlds branch from 9c5a682 to e371720 Compare November 23, 2026 10:07
@epheterson
epheterson force-pushed the line/1.16.0-14-3d-controls branch from 018b7ba to a6eb1bc Compare November 23, 2026 10:07
@epheterson
epheterson force-pushed the line/1.16.0-13-3d-worlds branch from e371720 to 9eaa60b Compare November 23, 2026 10:12
@epheterson
epheterson force-pushed the line/1.16.0-14-3d-controls branch from a6eb1bc to b2c69a8 Compare November 23, 2026 10:12
@epheterson
epheterson force-pushed the line/1.16.0-13-3d-worlds branch from 9eaa60b to 10f27af Compare November 23, 2026 10:52
@epheterson
epheterson force-pushed the line/1.16.0-14-3d-controls branch from b2c69a8 to 9b2180b Compare November 23, 2026 10:52
@epheterson
epheterson force-pushed the line/1.16.0-13-3d-worlds branch from 10f27af to 454c181 Compare November 23, 2026 16:37
@epheterson
epheterson force-pushed the line/1.16.0-14-3d-controls branch from 9b2180b to c5e389a Compare November 23, 2026 16:37
@epheterson
epheterson force-pushed the line/1.16.0-13-3d-worlds branch from 454c181 to 9eea5f6 Compare November 23, 2026 16:45
@epheterson
epheterson force-pushed the line/1.16.0-14-3d-controls branch from c5e389a to 6e37a85 Compare November 23, 2026 16:45
@epheterson

Copy link
Copy Markdown
Owner Author

Reviewed here; included in the release PR #189.

@epheterson epheterson closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-a-release Ships nothing; CI skips the version check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant