Skip to content

fix(arcgis): update arcgis module to use RenderNode instead of externalRenderers - #10257

Merged
chrisgervang merged 25 commits into
visgl:masterfrom
toddrun:toddrun/update-arcgis-module-to-work-with-render-node
Jun 24, 2026
Merged

chrisgervang merged 25 commits into
visgl:masterfrom
toddrun:toddrun/update-arcgis-module-to-work-with-render-node

Conversation

@toddrun

@toddrun toddrun commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #9497

Background

ArcGIS JS API 4.29 replaced externalRenderers with the new RenderNode API. The existing @deck.gl/arcgis SceneView integration still depended on externalRenderers, so this PR ports the integration to RenderNode and fixes the rendering issues exposed during that migration.

Change List

  • Port the ArcGIS SceneView bridge from externalRenderers to RenderNode.
  • Initialize deck/luma resources lazily on the first render() call, which is the earliest point where ArcGIS guarantees a valid WebGL context.
  • Capture and reuse the ArcGIS output framebuffer correctly so deck renders into the expected target under RenderNode.
  • Fix SceneView alignment under tilt by improving how deck view state, zoom, and altitude are derived from the live ArcGIS camera and focal point.
  • Normalize legacy numeric coordinateSystem values in the core shader path so Tile3DLayer / I3SLoader continue to work with the newer string-based shader code.
  • Patch @luma.gl/[email protected] so shared ArcGIS/deck WebGL state is re-read correctly when ArcGIS changes framebuffer bindings.
  • Update the ArcGIS demo apps, tests, and docs to reflect the RenderNode-based integration.

Notes

  • The ArcGIS integration now uses a local SceneView RenderNode rather than the old externalRenderers path.
  • The luma patch is applied with patch-package during postinstall.
  • The core coordinate-system shim is intended to preserve backward compatibility for existing numeric inputs while the rest of deck.gl expects string-valued coordinate systems.

Verification

  • Updated the ArcGIS examples to exercise the RenderNode-based SceneView path.
  • Added coverage for the core coordinate-system normalization path.

Here's a screenshot of the ArcGIS Integration page running on my laptop (incidentally, on https://deck.gl/examples/arcgis I'm unable to see the buildings):

arcgis-integration-page

Additional screen captures of the test/apps/arcgis* samples are available here: https://drive.google.com/drive/folders/1X6IifpKeCo6RQ8m_p6gCMlmgeP-2fTiN?usp=sharing

@toddrun

toddrun commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

The build failing is actually good news: it means the luma patch is no longer needed. Unfortunately, I don't have immediate bandwidth available to update the dependencies and remove the patch, but this is definitely on "the list" now

@toddrun
toddrun force-pushed the toddrun/update-arcgis-module-to-work-with-render-node branch from d1b2e02 to 0fc13c7 Compare May 6, 2026 22:17
@coveralls

coveralls commented May 7, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.09% (-0.3%) from 83.424% — toddrun:toddrun/update-arcgis-module-to-work-with-render-node into visgl:master

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. As mentioned in slack, the core maintainers aren't able to fully test this integration and rely on the community to QA. Feel free to add remarks to the upgrade guide.

Left a few comments about documentation. Holding off on the merge until loaders is patched and the coordinate normalization in the core module is removed

Comment thread CHANGELOG.md Resolved
Comment thread test/apps/arcgis-i3s/app.js Resolved
@chrisgervang
chrisgervang merged commit 7fe512e into visgl:master Jun 24, 2026
5 checks passed
@chrisgervang chrisgervang added this to the v9.3 milestone Jun 24, 2026
chrisgervang pushed a commit that referenced this pull request Jun 25, 2026
…alRenderers (#10257)

* fix(arcgis): Replace externalRenderers wth RenderNode

* test(arcgis): ensure renderer does not fail

* docs(arcgis): Replace externalRenderers references with RenderNode

* fix(arcgis): update to work with luna v9.2.6

* docs(arcgis): updates related to luma 9.x.x

* (arcgis) Improve integration

* (arcgis) Inline RenderNode setup into constructor

* (docs) Remove unneeded and potentially outdated docs

* (arcgis) Fix high-tilt detachment

* (docs) Update references to RenderNode

* (test) Coverage for core changes

* (arcgis) remove unused fbo

* (arcgis) drop luma.gl patch for v9.3.3

* (chore) remove unhelpful entries

* (chore) remove normalization hack

* (test) restore accidentally removed tests

* (chore) update loaders in website dependencies

* (docs) update the upgrade guide to reflect changes

* (docs) include loadScriptOptions info to the upgrade guide
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.

[Bug] @deck.gl/arcgis fails to resolve "@arcgis/core/views/3d/externalRenderers" in v4.32.5

3 participants