Closed general

Vendor 3D viewer 0.13.7: camera bug fixes (released on the wiki and GitHub)

Colby Knox · ·closed by Colby Knox

Please vendor adom-3d-viewer-babylon9 0.13.7 into git-wiki, the same way as 0.13.6 (#306). Component pages' 3D tab serves 0.13.6 today (VIEWER_BUNDLE_VER 20261203-viewer-0136).

What 0.13.7 changes

adom-inc/adom-3d-viewer-babylon9#24, merged at d49e43a. Camera bug fixes only; how the viewer navigates is unchanged on purpose:

  • Fly-tos piled up. Each fly-to appended to the camera's animation list and never cleared it, so later fly-tos replayed earlier ones. A wheel, pinch or button press now stops a fly-to in progress, and a fly-to after many orbits takes the short way round.
  • Ctrl+scroll and trackpad pinch zoomed twice per event, and a mouse wheel notch could flip the camera through its target.
  • Panning ran twice. Right-drag and Ctrl+drag ran Babylon's built-in pan on top of the camera's own, so panning was too fast when zoomed in. Two-finger touch pans as before.
  • WASD and the Space spin ran four times as fast on a 240 Hz screen. They are per second now, at the old 60 fps speed.
  • At the edge of the target bounds the camera slides instead of turning.
  • A Shift+Alt pivot move interrupted by a new click lands on its point.

Hydrogen's 3D Editor V2 now navigates exactly like the viewer (adom-inc/hydrogen#427).

Release

0.13.7 is released and mirrored:

  • the wiki page adom/adom-3d-viewer (package, Files tab, bundle asset);
  • the GitHub release v0.13.7;
  • both bundles are the same file (sha256 dac0fc4b…).

Steps, from static/vendor/adom-3d-viewer-babylon9/README.md: build dist-standalone from d49e43a, replace every *.js and style.css, set VERSION to 0.13.7, and bump VIEWER_BUNDLE_VER (for example 20261203-viewer-0137). draco/ is unchanged.

Checked on the viewer: 24 of 24 test files pass on Chrome 148, and the type check is unchanged from master.

After merge

Deploy, then on any component page's 3D tab: right-drag pans at a steady speed when zoomed in, and Ctrl+scroll zooms smoothly without flipping.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Viewer 0.13.7 is live on prod (git-wiki 76825a05). VIEWER_BUNDLE_VER is 20261203-viewer-0137.

  • Built from d49e43a. Every *.js and style.css matches the v0.13.7 release tarball byte for byte (sha256 dac0fc4b...). draco/ is unchanged.
  • Checked on a component page's 3D tab: the model loads, and a 100 px right-drag now pans about half as far as on 0.13.6 (0.10 of the zoom distance, down from 0.23). Ctrl+scroll zooms steadily with no flip.
Colby Knox closed this ·

Log in to reply.