Skip to content

1.16 part 16/18: 3D: standing on a world, landing sites, the rover and terrain - #187

Closed
epheterson wants to merge 2 commits into
line/1.16.0-15-3d-craftfrom
line/1.16.0-16-3d-ground
Closed

epheterson wants to merge 2 commits into
line/1.16.0-15-3d-craftfrom
line/1.16.0-16-3d-ground

Conversation

@epheterson

@epheterson epheterson commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Part 16 of 18 of Zimi 1.16.0: 3D: standing on a world, landing sites, the rover and terrain. Base: line/1.16.0-15-3d-craft (part 15); 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

Standing on a world in the 3D view: real terrain under the body's own sky, the landing sites (earth/sites-v1.json) and the launch pad as models on their ground, driving a rover, a rover's whole journey on the timeline, and the launch seen from the pad. The live sky card, Look and Stand here now share one sky definition. The rebuilt Almanac ZIM lands here too, as the commit on top of this part.

What changes

  • zimi/static/almanac-stand.js, almanac-standgl.js, almanac-standlook.js: Stand here. The camera flies down to the ground, the body's sky is computed on the GPU from its own air, the Sun and every body that is up sit at their true places, a tap walks you there, and turning the phone looks around.
  • zimi/static/almanac-terrain.js, almanac-terrainshade.js: the height of the ground: a shipped 1024 x 512 map per body, sharpened by Almanac HD tiles when installed, then generated craters and hills seeded by place; the shade file casts relief shadows. Pure maths, no DOM.
  • zimi/static/earth/terrain-<body>-v2.bin (11 files) and scripts/build_terrain.py: the maps (LOLA, MOLA, Magellan, MESSENGER, ETOPO, Dawn, New Horizons, HRSC, Cassini) resampled and written in the ZTRN format; the same script cuts the HD tiles.
  • zimi/static/almanac-sites.js, almanac-sites-ground.js, almanac-sites-drive.js, almanac-sites-launch.js, almanac-sites-trail.js with earth/sites-v1.json: the landing sites as models on their ground with the Sun's real shadows, driving the Moon buggy or a Mars rover, a launch of the Saturn V from its own equations, and the Curiosity and Perseverance traverses.
  • zimi/static/almanac-standhost.js: draws a site into Stand here's ground (levelled under the lander), with an eye-level camera as a second view of the site.
  • zimi/static/almanac-padview.js: Stand at the pad. The count, ignition and the climb read the mission player's own trajectory table, not a second copy.
  • zimi/static/almanac-onesky.js, almanac-oneair.js, almanac-oneland.js, almanac-skyland.js, almanac-skyscene.js: one sky for the card, Look and Stand here (one definition, one photometry, one registry of sky objects), one land-cover answer, and the beach scene's helicopter.
  • scripts/build_site_models.py, build_apollo_sites.py, build_site_thumbs.py, build_traverses.py, mission_landing.py: build the site models, the six Apollo sites from published positions (LROC, ALSJ), the site thumbnails and the rover journeys from NASA waypoints.
  • zimi/builtin/zimi_almanac_2026-11l.zim and its .source: the built Almanac ZIM, taken unchanged from the release branch. It replaces zimi_almanac_2026-11e.zim.

How to review

  • Start with zimi/static/almanac-earth.js _aeStandAt and zimi/static/almanac-stand.js _aeStandDispose, then almanac-sites.js _asDispose: look for GL objects (geometry, materials, render targets) created per visit that the dispose path misses.
  • Then almanac-oneair.js: the card's tables are built in the 3D view's renderer; check that they are freed when the context is lost (_oa is reset there).
  • Risk: a phone's frame time and memory with the terrain and shadow grids; touch handling on the ground (a touch stays with its start element on iPhone, so overlays take no pointer); the sites' files are listed by http._offline_urls so the service worker keeps them, so check each new file is named there or by the page.
  • Skip: the terrain-*-v2.bin maps, site-thumbs-v1.webp, sites-v1.json's generated rows, and the .zim. The maps are made by scripts/build_terrain.py, the sheet by scripts/build_site_thumbs.py, the ZIM by python -m zimi.ownzims.
  • Rides here: the Almanac ZIM tests (test_almanac_zim.py, test_almanac_maxi.py, test_almanac_hd_build.py, test_almanac_hd_workflow.py, test_almanac_flavour_metadata.py, test_golden_record.py, test_zimi_footer_browser.py) because the ZIM's sources are only complete at this tip; test_almanac_missions.py, test_almanac_sent.py and test_mission_events.py read the site data here; the UFO, sheet, pan, label-touch and capability tests drive the view that is whole at this tip.

Tests

  • tests/test_almanac_terrain.cjs, test_build_terrain.py: the shipped height maps say what they should, generated detail is repeatable and bounded, the format and tile round trip.
  • tests/test_almanac_sites.py, test_almanac_sites.cjs, test_almanac_sites_dispose.cjs, test_almanac_sent.py: site data holds together, disposal, and the Sent index.
  • tests/test_almanac_missions.py, test_mission_events.py: the mission tables against the flight reports and each mission's source document.
  • tests/test_almanac_onesky.cjs, test_almanac_oneland.cjs, test_almanac_oneair_gone.cjs, test_almanac_padview.cjs, test_capability.cjs: the shared sky, land cover, the pad view and capability levels.
  • tests/test_almanac_zim.py, test_almanac_maxi.py, test_almanac_hd_build.py, test_golden_record.py: the Almanac ZIM, its flavours, the HD tile build, and the Golden Record's credits.
  • Browser tests (whole matrix only): test_almanac_stand_browser.py, test_almanac_drive_browser.py, test_almanac_sites_browser.py, test_almanac_sites_offline_browser.py, test_almanac_onesky_browser.py, test_almanac_padview_browser.py, the UFO tests, and the touch-layer and label-touch tests.

epheterson and others added 2 commits November 23, 2026 01:49
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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-15-3d-craft branch from 69f39c7 to 945b8a0 Compare November 23, 2026 10:07
@epheterson
epheterson force-pushed the line/1.16.0-16-3d-ground branch from c99e429 to addc3b9 Compare November 23, 2026 10:07
@epheterson
epheterson force-pushed the line/1.16.0-15-3d-craft branch from 945b8a0 to b34da46 Compare November 23, 2026 10:12
@epheterson
epheterson force-pushed the line/1.16.0-16-3d-ground branch from addc3b9 to 158ca07 Compare November 23, 2026 10:12
@epheterson
epheterson force-pushed the line/1.16.0-15-3d-craft branch from b34da46 to 61bd07c Compare November 23, 2026 10:52
@epheterson
epheterson force-pushed the line/1.16.0-16-3d-ground branch from 158ca07 to 5d97301 Compare November 23, 2026 10:52
@epheterson
epheterson force-pushed the line/1.16.0-15-3d-craft branch from 61bd07c to 1acd6dd Compare November 23, 2026 16:37
@epheterson
epheterson force-pushed the line/1.16.0-16-3d-ground branch from 5d97301 to c10b07a Compare November 23, 2026 16:38
@epheterson
epheterson force-pushed the line/1.16.0-15-3d-craft branch from 1acd6dd to 666aeec Compare November 23, 2026 16:45
@epheterson
epheterson force-pushed the line/1.16.0-16-3d-ground branch from c10b07a to b0248be 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