Skip to content

Viewer 3.22.0 - Watermelon

Choose a tag to compare

@github-actions github-actions released this 20 Oct 09:21
· 259 commits to main since this release

This release adds idle-based automatic scene updates for interaction and drawing parameters, grid-aware snapping for geometry restrictions, an option to download textures directly in the browser, and automatic camera fitting for advanced screenshots. It also fixes several camera, screenshot, snapping, and drag-occlusion issues, reduces memory usage for large models, makes texture loading failures non-fatal, and consolidates the shared data types into a single package, together with the fixes from the 3.21 patch releases.

Interaction Parameters / Drawing Tools

  • Added automaticSceneUpdate and automaticSceneUpdateTimeout to interaction parameter settings. When enabled, a customization is requested once handles stop changing for the configured timeout (default 1000 ms). Used by gumball, rectangle transform, and dragging; selection ignores it (SS-10024).
  • Added automaticSceneUpdate and automaticSceneUpdateTimeout to the drawing-tool general settings. When enabled, update() is called once points stop changing for the configured timeout (SS-10024).
  • Deprecated the drawing-tool autoUpdate setting in favor of automaticSceneUpdate. Existing autoUpdate configurations keep working with an immediate (0 ms) update.
  • Note: these settings are distinct from the session-level ISessionApi.automaticSceneUpdate, which controls whether the session's scene tree node is replaced after customize.
  • Removed the autoClear setting introduced in 3.21.0 from interaction and drawing-tool settings.
  • Fixed rectangle transform point mapping and scaling edge cases, and fixed the gumball not re-rendering after its settings change (SS-10024).
  • Enabled the pulse interaction effect for instanced meshes.

Restrictions / Snapping

  • Added radius and gridSize to geometry restriction definitions. radius sets the world-space pick radius for points and lines (and the vertex/edge snap radius on meshes); gridSize makes point and line picking cover at least one grid cell, so there are no gaps between snap points.
  • Fixed grid snapping picking a neighboring point, or no point at all, on fine snap grids (SS-10152).
  • Fixed geometry snapping for hideable restrictions when the snap point lies on a visible surface.
  • Fixed the dragged object occluding its own snap targets, which could prevent snapping with orthographic cameras (SS-10183).
  • Invisible lines are no longer intersected.
  • Fixed intersectionOpacity not being applied to raytracing intersections. Scene geometry at or below this opacity (default 0.01) does not occlude interactions when occludeBySceneGeometry is enabled.

Screenshots

  • Added automatic camera fitting to getScreenshotAdvanced: if initialAutoAdjust is enabled on the screenshot camera, the camera zooms to the scene before the capture and its previous pose is restored afterwards. Pass initialAutoAdjust: false to skip the fit (SS-10132).
  • Fixed resizing issues when capturing advanced screenshots at an explicit resolution.
  • Fixed advanced screenshots with orthographic cameras and other specific camera configurations.
  • Fixed HTML anchors not showing up in screenshots and being placed incorrectly when the screenshot resolution differs from the canvas.

Camera

  • Fixed zoom extents issues, including animations being interrupted or snapping to the end position (SS-10132).
  • Fixed an automatic zoomTo cancelling an ongoing camera animation.
  • Fixed a camera gesture continuing on the previous camera after switching cameras during a pointer interaction (SS-10265).

Session / Textures

  • Added directTextureDownload to createSession and the session API. When enabled, texture URLs that are not ShapeDiver texture assets are fetched directly in the browser instead of being proxied through the Geometry Backend. The texture host must allow cross-origin requests from the viewer (SS-10252).
  • Texture loading errors no longer cause the whole output to fail; affected textures are skipped and a warning is logged (SS-9979).
  • Export task events (TASK_START, TASK_END, and failures) now include sessionId, exportId, name, and displayname in their event data.

Performance

  • Reduced memory usage when loading large models by avoiding unnecessary buffer and accessor copies in the glTF loaders and scene tree conversion (SS-10057).

Dependencies / Packages

  • Merged @shapediver/viewer.data-engine.shared-types into @shapediver/viewer.shared.types. The package is no longer a dependency of the Viewer packages; types previously imported from it are available from @shapediver/viewer.shared.types and the public API packages.
  • Updated @shapediver/sdk.geometry-api-sdk-v2 from 4.2.0 to 4.2.2.

Bugfixes

  • Fixed attribute visualization filtering to only include item attributes in the SDTF overview, excluding descriptive node and chunk metadata (SS-9996).
  • Fixed SDTF uploads checking the wrong availability flag.

What's Changed

Full Changelog: https://github.com/shapediver/Viewer/compare/viewer@3.21.0...viewer@3.22.0