Skip to content

1.16 part 13/18: 3D: Earth, Moon, planets and the solar system - #184

Closed
epheterson wants to merge 1 commit into
line/1.16.0-12-almanac-book-hdfrom
line/1.16.0-13-3d-worlds
Closed

epheterson wants to merge 1 commit into
line/1.16.0-12-almanac-book-hdfrom
line/1.16.0-13-3d-worlds

Conversation

@epheterson

@epheterson epheterson commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Part 13 of 18 of Zimi 1.16.0: 3D: Earth, Moon, planets and the solar system. Base: line/1.16.0-12-almanac-book-hd (part 12); 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

The 3D view's engine and its worlds: the Earth, Moon, planets, moons, the Sun and the solar system as one scene. It carries the new ephemeris, the Sun close up, the orrery lifting into 3D, and the Earth's named features, plus the scripts that build their data. Almost all of it is one file, zimi/static/almanac-earth.js, which also holds the hooks and the controls layer that the next three parts plug into.

What changes

  • zimi/static/almanac-earth.js (6,189 lines added, 1,043 removed; 7,591 to 12,737 lines): more worlds (Vesta, Phobos, Charon, Triton, six of Saturn's moons), the Go to sheet (grid or list, filter pills, search), the row of worlds lit as they stand at the shown moment (_aeRowLitPaint), the info corner, the time chip, and the controls layer (AH_*, _aeMode, _aeHudBuild) that says which control stands where in every mode.
  • zimi/static/almanac-earth.js: the Almanac HD tile loader (_aeHd*, GPU memory budget), the Earth's coast tint, and named ranges, rivers, lakes, seas and cities at the zoom where each reads (_aeLmLoad, AE_LM_RANK_KM).
  • zimi/static/almanac-earth.js: the open view gives up its GPU when the page is hidden, rebuilds after a lost context, and idles its text and frame work (AE_IDLE_*, _aeContextLost, _aeCapAside).
  • zimi/static/almanac-vsop87.js (generated) and almanac-ephem.js: every planet from VSOP87D truncated to 1 arcsecond over 1500-2500, replacing the approximate elements; the Earth's series is retruncated the same way. The Mars error at its 2021 arrival was 49,500 km before.
  • zimi/static/almanac-navdata.js: its private copy of the VSOP rows is removed in favor of the shared series.
  • zimi/static/almanac-orrery3d.js (new) and almanac-orrery.js: a tap on a planet in the page's orrery opens the 3D view on the same camera and flies in; the way back settles onto the canvas.
  • zimi/static/almanac-sun.js (new): prominences, flares and active-region loops, made up by the Sun's own rules and deterministic per instant; loaded only when the Sun is wide on screen.
  • zimi/static/almanac-staticglobe.js (new): one lit render of the Earth behind the plain line, for a device where the 3D view is set aside.
  • scripts/build_*.py: build the Go to sprite sheets, land mask, land cover, night lights, Earth landmarks and VSOP87 data; fit_moon_orbits.py gains Mars, Neptune, Pluto and nine more moons.
  • zimi/static/earth/: new world maps, landmarks-earth-*.json (2,904 rows, nine name files), traverses-v1.json, and a rebuilt three.js bundle with the license block moved to the end; SOURCES.txt credits each.
  • Eight existing files under static/earth change content under their old names in this part (fourteen over the release), so tests/test_almanac_asset_urls.cjs guards that data files go through _almAsset.

How to review

  • Start with: almanac-ephem.js _ephPlanetHelioJ2000 and _ephBodyJ2000 (frame of date to J2000, TT versus UT), then almanac-orrery3d.js (the hand-over uses _aeHandCam, _aeHandBlend, _aeHandApply), then _aeSunFxWanted and _aeMoonHiWanted (what is fetched on open).
  • Risk: first-open weight (tests/test_almanac_lazy_open.cjs); GPU memory in _aeHdBudget and _aeLoadMap; context loss in _aeContextLost; the row's 4 Hz canvas paint in _aeRowLitPaint on phones.
  • Skip: almanac-vsop87.js, landmarks-earth-*.json, three-r186.min.js and the .webp and .bin files (made by the scripts/build_*.py named above, or fetched, see SOURCES.txt).
  • Not read line by line: the CSS array and the Go sheet rendering in almanac-earth.js.
  • Rides here: almanac-earth.js names files that land later (almanac-fly.js, -sats.js, -stand*.js, -sites*.js, -missions.js, -padview.js, -terrain*.js, -debug3d.js, -oneland.js, -oneair.js, -sent.js) and loads each on first use, so the hooks and the AE_FLY_REF, AE_GROUND_REF and AE_MISSION_REF tables are here by necessity. build_landcover.py and build_landmask.py write data that Stand here (part 16) reads. tests/test_almanac_lazy_open.cjs and test_almanac_reference.cjs assert on almanac-earth.js and the VSOP file.

Tests

  • Ephemeris: tests/test_planets_vsop87.cjs against tests/data/planets-horizons.json (JPL Horizons) at the missions' dates; test_almanac_earth.cjs and test_almanac_earth_view.cjs for the scene's math and view.
  • Fetch discipline: test_almanac_lazy_open.cjs, test_almanac_asset_urls.cjs, test_almanac_cap_maps.cjs, test_almanac_cap_textures.cjs, test_almanac_moon_hi_lead.cjs.
  • Sun: test_almanac_sunfx.cjs.
  • Data: test_landmarks_data.py, test_verify_landmark_qids.py, test_almanac_reference.cjs.
  • Browser (whole matrix only): test_almanac_worlds_browser.py, _planets_, _bodies_, _fastopen_, _saturn_rings_, _orbits_transit_, _tap_planet_, _landmarks_* at phone size.

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-12-almanac-book-hd branch from f6719e6 to a82ebed Compare November 23, 2026 10:07
@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-12-almanac-book-hd branch from a82ebed to e335882 Compare November 23, 2026 10:12
@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-12-almanac-book-hd branch from e335882 to 98d1b9e Compare November 23, 2026 10:52
@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-12-almanac-book-hd branch from 98d1b9e to 193d2a9 Compare November 23, 2026 16:37
@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-12-almanac-book-hd branch from 193d2a9 to 1182462 Compare November 23, 2026 16:45
@epheterson
epheterson force-pushed the line/1.16.0-13-3d-worlds branch from 454c181 to 9eea5f6 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