Skip to content

M1 Tile foundations: OSM XYZ tiles on a three.js globe and plane #1

Closed

Description

@clement-igonet

Tracking issue for M1 Tile foundations: OSM raster XYZ tiles rendered natively in three.js.

Tasks

Activity

  1. changed the title [-]M1 Tile foundations — OSM XYZ tiles on a three.js globe and plane[/-] [+]M1 Tile foundations: OSM XYZ tiles on a three.js globe and plane[/+] on Sep 4, 2026
  2. clement-igonet commented on Sep 21, 2026

    @clement-igonet
    OwnerAuthor

    M1 is complete. Everything in the list above is merged on main and live at https://clement-igonet.github.io/threejs-maplibre/.

    Since PR #7:

    • MapControls (b421e0b, cbee636): map-style camera with center, distance, heading and pitch; drag pans by the ground the pixels cover, wheel and pinch zoom around the pointer, two fingers pan, twist and tilt, right drag turns and tilts. The planar demo shares the same controls through a mode: 'planar' option. npm run controls-check measures every gesture on both demos in headless Chrome with multi-touch emulation.
    • Texture upload budget (e0a7998): decoded tiles reach the GPU within a per-frame time budget, ancestors covering meanwhile, so a fast zoom no longer stalls a frame. The bench reports p95 frame CPU and logs slow frames with the engine counters.
    • Demos show v<version> (<commit>) in a footer to tell a cached page from a fresh deploy.

    Numbers are in docs/design-notes.md (benchmark table updated 2026-09-21). Upstream: mrdoob/three.js#34469 is open and awaiting review; the compose proposal (#34462/#34463) was closed after maintainer feedback.

    Known limits carried into later milestones: no inertia on the controls and pan is scaled from the screen center rather than raycast (M3, with the MapLibre camera bridge); polar caps and horizon culling (M2/M3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions