Add globe animation capture tooling#76
Merged
rdhyee merged 1 commit intoisamplesorg:mainfrom Mar 27, 2026
Merged
Conversation
tools/globe_capture.html — standalone Cesium page that loads H3 res4
data from R2 via DuckDB-WASM and exposes the viewer for Playwright.
tools/capture_globe_rotation.py — Playwright script that rotates the
camera 360°, captures frames, and stitches into animated WebP via
img2webp (ffmpeg's libwebp_anim doesn't produce proper multi-frame
WebP). Configurable frames, duration, quality, viewport size.
Current defaults produce a 120-frame, 15-second loop at 800x500,
~3.8 MB WebP. Run with:
python -m http.server 8765 --directory tools/
python tools/capture_globe_rotation.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/globe_capture.html— standalone Cesium page with DuckDB-WASM that loads H3 data and exposes the viewer for Playwrighttools/capture_globe_rotation.py— captures 360° rotation frames and stitches animated WebP viaimg2webpWhy check this in
The animated globe hero (PR #69) will need periodic re-capture as we tweak camera angle, rotation speed, point styling, or when data updates. Having the tooling in-repo means anyone can regenerate it.
How to use
Tunable parameters
--duration— loop length in seconds (higher = slower rotation)--frames— frame count (more = smoother)--quality— WebP quality 0-100 (lower = smaller file)--width/--height— viewport dimensionsDependencies
playwright,img2webp(frombrew install webp),ffmpeg(for GIF fallback)🤖 Generated with Claude Code