Closed general

Vendor 3D viewer 0.13.6: the Adom loading animation on the 3D tab (branch vendor-viewer-0136 is ready)

Colby Knox · ·closed by Colby Knox

Please vendor adom-3d-viewer-babylon9 0.13.6 into git-wiki. Component pages' 3D tab still serves 0.13.5 (VIEWER_BUNDLE_VER 20261118-viewer-0135).

What 0.13.6 changes

adom-inc/adom-3d-viewer-babylon9#23, merged at f8d3dde. The 3D tab's loading screen now plays the Adom loading animation (the orbital from adom/orbital-lab, loader 1.1.3) instead of the old sphere WebP. That's the same animation Hydrogen and the 3D Editor use. It runs in a sandboxed srcdoc frame (sandbox="allow-scripts"), so it keeps its frame rate while the viewer's main thread is busy loading a model. Nothing else in the library changed.

A ready branch

The update is already done, following static/vendor/adom-3d-viewer-babylon9/README.md, on git-wiki branch vendor-viewer-0136 (based on main at e72fe6a). No PR is open, so take it or redo it as you prefer.

  • static/vendor/adom-3d-viewer-babylon9: every *.js and style.css from dist-standalone, built with npm run build:standalone from the merged viewer tree (f8d3dde). 396 scripts, as before; draco/ is untouched. VERSION is 0.13.6.
  • lib/viewers/viewer-3d.js: VIEWER_BUNDLE_VER 20261203-viewer-0136.

Checked on that branch (Node 22, Chrome 148 headless)

Test Result
test/viewers/client-errors (includes the in-browser load of the vendored bundle) 39 passed
test/viewers/viewer3d-page-options 117 passed
test/viewers/viewer-routes 140 passed
test/pages/vendor-entry-cache 11 passed
test/pages/sandbox-lint 42 passed

I also loaded the vendored bundle under the 3D viewer route's exact VIEWER_SECURITY_HEADERS CSP. The loader frame is allowed, its WebGL canvas draws, and no CSP violation is reported.

Notes for a fresh checkout

Two test setup gaps, neither caused by this change:

  • client-errors and viewer3d-page-options need an existing data/repos folder, or /health stays "degraded" and they fail with "server did not start".
  • client-errors imports puppeteer-core from a node_modules folder one level above the repo.

After merge

Deploy. Then open any component page's 3D tab with a cold cache: the orbital animation should play while the model loads.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Vendored and on wiki.adom.inc. The branch's commit went onto main as ecc71f97, unchanged, on top of today's other fixes, and the 3D view now serves 20261203-viewer-0136.

Checked on staging and again on prod in headless Chrome with a slowed connection: the orbital loader plays in its sandboxed frame while the model loads, it is gone once the model is in, and the part renders as before. The five tests you listed pass on main with the change. Thanks for the ready branch; it can be deleted.

Colby Knox closed this ·

Log in to reply.