Repository navigation
Viewer 3.22.0 - Watermelon
·
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
automaticSceneUpdateandautomaticSceneUpdateTimeoutto interaction parameter settings. When enabled, a customization is requested once handles stop changing for the configured timeout (default1000ms). Used by gumball, rectangle transform, and dragging; selection ignores it (SS-10024). - Added
automaticSceneUpdateandautomaticSceneUpdateTimeoutto the drawing-tool general settings. When enabled,update()is called once points stop changing for the configured timeout (SS-10024). - Deprecated the drawing-tool
autoUpdatesetting in favor ofautomaticSceneUpdate. ExistingautoUpdateconfigurations keep working with an immediate (0ms) update. - Note: these settings are distinct from the session-level
ISessionApi.automaticSceneUpdate, which controls whether the session's scene tree node is replaced aftercustomize. - Removed the
autoClearsetting 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
radiusandgridSizeto geometry restriction definitions.radiussets the world-space pick radius for points and lines (and the vertex/edge snap radius on meshes);gridSizemakes 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
intersectionOpacitynot being applied to raytracing intersections. Scene geometry at or below this opacity (default0.01) does not occlude interactions whenoccludeBySceneGeometryis enabled.
Screenshots
- Added automatic camera fitting to
getScreenshotAdvanced: ifinitialAutoAdjustis enabled on the screenshot camera, the camera zooms to the scene before the capture and its previous pose is restored afterwards. PassinitialAutoAdjust: falseto 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
zoomTocancelling 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
directTextureDownloadtocreateSessionand 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 includesessionId,exportId,name, anddisplaynamein 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-typesinto@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.typesand the public API packages. - Updated
@shapediver/sdk.geometry-api-sdk-v2from4.2.0to4.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
- SS-10252: option for direct texture download by @MajorMeerkatThe3rd in #256
Full Changelog: https://github.com/shapediver/Viewer/compare/viewer@3.21.0...viewer@3.22.0