Skip to content

test(render): GlobeView terrain drape render case + fix TerrainExtension GlobeView docs - #10666

Merged
chrisgervang merged 4 commits into
masterfrom
claude/test-terrain-extension-globe-GveWO
Sep 30, 2026
Merged

chrisgervang merged 4 commits into
masterfrom
claude/test-terrain-extension-globe-GveWO

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #10657

TerrainLayer and TerrainExtension support GlobeView but have no globe render coverage, and the docs are wrong in two places: terrain-extension.md tells GlobeView users to set tesselator: 'grid', which does not exist, and globe-view.md lists TerrainLayer as not working. Tests and docs only.

GlobeView
terrain-extension-drape-fill-globe: choropleth fills draped over TerrainLayer tiles, San Francisco at zoom 11.5, pitch 60

No before image: the case passes on master with this PR's spec, so the image shows current behavior and the PR only adds the coverage.

Change List

Goldens were generated with the in-thread TerrainLoader because the sandbox cannot fetch the worker bundle; the two existing map goldens matched the in-thread render. Ran the render spec headless on WebGL and lint.


Note

Low Risk
Documentation and render-test coverage only; no production runtime changes.

Overview
Adds render coverage for draping choropleth fills over TerrainLayer on GlobeView, and aligns docs with current Globe + terrain behavior.

A new case terrain-extension-drape-fill-globe mirrors the existing map drape test (SF, zoom 11.5, pitch 60) but uses GlobeView, a new golden image, extra settle time, and stroked: false because draped strokes trigger per-frame re-tessellation on globe until a separate fix lands.

Documentation: globe-view.md no longer lists TerrainLayer as unsupported—TerrainLayer and TerrainExtension are marked experimental instead. terrain-extension.md removes the incorrect tesselator: 'grid' note for GlobeView pairing.

Reviewed by Cursor Bugbot for commit 960615e. Bugbot is set up for automated code reviews on this repo. Configure here.

@coveralls

coveralls commented Sep 7, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.511% (+0.01%) from 82.498% — claude/test-terrain-extension-globe-GveWO into master

@chrisgervang
chrisgervang marked this pull request as ready for review September 7, 2026 08:02
@greptile-apps

greptile-apps Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Adds a render test case and updates documentation.

The PR appears safe to merge based on its changes.

Summary

This PR adds a WebGL render case and golden image for terrain-draped GeoJSON fills in GlobeView, removes invalid tessellator advice, and marks TerrainLayer and TerrainExtension support as experimental.

Reviews (4) · Last reviewed commit: "Merge branch 'master' into claude/test-t..."

Base automatically changed from claude/globe-flat-common-helpers-GveWO to master September 25, 2026 17:34
Adds `terrain-extension-drape-fill-globe`: the existing `terrain-extension-drape`
scene (TerrainLayer with operation 'draw+terrain' + choropleths draped through
TerrainExtension, zoom 11.5 / pitch 60) rendered under GlobeView, which
exercises TerrainLayer's GlobeViewport branch (tile meshes in LNGLAT) and the
extension's globe -> Mercator sampling of the terrain-cover FBOs. The golden
shows the same choropleth fills as the map golden draped over the pitched
terrain tiles on the globe. The map case is unchanged.

The GeoJsonLayer stroke is deliberately disabled in the globe case: a draped
PathLayer on GlobeView is re-tessellated twice per frame because
Layer.activateViewport() (layer.ts) calls _update() whenever the pass viewport
changes, and PathLayer.shouldUpdateState() compares viewport.resolution /
projectionMode, which flip between the Web Mercator terrain-cover pass viewport
(resolution undefined, MERCATOR) and the GlobeViewport screen pass (resolution
10, GLOBE). Every _update() sets needsRedraw, so deck never settles and the
render harness cannot capture a screenshot. Not a test problem; documented in
the case comment so the stroke can be restored once that is fixed.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FyzWaF5TmQPmGjh3Zr3XL9
…otes

terrain-extension.md told GlobeView users to set `tesselator: 'grid'` on the
TerrainLayer source. No such option exists: loaders.gl 4.4.3's TerrainLoader
accepts `tesselator: 'martini' | 'delatin' | 'auto'` (parse-terrain.d.ts) and
TerrainLayer has no such prop. Describe the real mechanism instead: TerrainLayer
detects GlobeViewport and positions its tile meshes in lnglat coordinates
(terrain-layer.ts renderSubLayers), so no configuration is needed.

globe-view.md still listed TerrainLayer under "layers that do not work in this
view"; the new terrain-extension-drape-fill-globe render test shows it does.
Replace the bullet with an "experimental" note for TerrainLayer/TerrainExtension.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FyzWaF5TmQPmGjh3Zr3XL9
Drop the TerrainLayer implementation detail from the GlobeView paragraph;
the remaining sentence states the supported views and why one FBO serves
both projections.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FyzWaF5TmQPmGjh3Zr3XL9
@chrisgervang
chrisgervang force-pushed the claude/test-terrain-extension-globe-GveWO branch from 26792ec to f0f1666 Compare September 25, 2026 17:37
@chrisgervang
chrisgervang merged commit ae86b1e into master Sep 30, 2026
8 checks passed
@chrisgervang
chrisgervang deleted the claude/test-terrain-extension-globe-GveWO branch September 30, 2026 05:41
@chrisgervang chrisgervang added this to the v9.4 patch releases milestone Oct 4, 2026
@chrisgervang chrisgervang mentioned this pull request Oct 7, 2026
53 of 66 tasks
chrisgervang added a commit that referenced this pull request Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants