Repository navigation
test(render): GlobeView terrain drape render case + fix TerrainExtension GlobeView docs - #10666
Merged
Merged
Conversation
felixpalmer
approved these changes
Sep 7, 2026
chrisgervang
commented
Sep 7, 2026
chrisgervang
marked this pull request as ready for review
September 7, 2026 08:02
|
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
force-pushed
the
claude/test-terrain-extension-globe-GveWO
branch
from
September 25, 2026 17:37
26792ec to
f0f1666
Compare
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.
Follow up of #10657
TerrainLayerandTerrainExtensionsupportGlobeViewbut have no globe render coverage, and the docs are wrong in two places:terrain-extension.mdtells GlobeView users to settesselator: 'grid', which does not exist, andglobe-view.mdlistsTerrainLayeras not working. Tests and docs only.GlobeViewterrain-extension-drape-fill-globe: choropleth fills draped overTerrainLayertiles, San Francisco at zoom 11.5, pitch 60No 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
terrain-layer.spec.ts: newterrain-extension-drape-fill-globe, the globe twin ofterrain-extension-drapewithstroked: false. Draped strokes cannot be captured because a drapedPathLayerre-tessellates every frame onGlobeView; fix(core, extensions): stop terrain cover pass from re-tessellating draped layers on GlobeView #10669 fixes that and replaces this case with the stroked oneterrain-extension-drape-fill-globe.png: choropleth fills following the terrain tiles on the globeterrain-extension.mddrops thetesselator: 'grid'advice;globe-view.mdmarksTerrainLayerandTerrainExtensionexperimental instead of unsupported (one-line conflict with fix(extensions): support MaskExtension in GlobeView #10660 in the same list)Goldens were generated with the in-thread
TerrainLoaderbecause 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
TerrainLayeronGlobeView, and aligns docs with current Globe + terrain behavior.A new case
terrain-extension-drape-fill-globemirrors the existing map drape test (SF, zoom 11.5, pitch 60) but usesGlobeView, a new golden image, extra settle time, andstroked: falsebecause draped strokes trigger per-frame re-tessellation on globe until a separate fix lands.Documentation:
globe-view.mdno longer listsTerrainLayeras unsupported—TerrainLayerandTerrainExtensionare marked experimental instead.terrain-extension.mdremoves the incorrecttesselator: '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.