Repository navigation
v0.25.0: WebGPU 3D Gaussian Splatting, Android XR Spatial UI, Phone Companion, Session Replay & Camera Profiles
Latest
·
76 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
XR Blocks v0.25.0 Release Notes
We are excited to announce XR Blocks 0.25.0, introducing 3D Gaussian Splatting on WebGPU, Android XR Spatial UI components and card interactions, a WebRTC Phone Companion controller, XR session recording and simulator replay, SDK-wide device camera profiles, an on-device Gemma 4 vision demo, and platform security and reliability improvements.
Highlights
- WebGPU 3D Gaussian Splatting: Integrated
@sparkjsdev/radixas an optional peer dependency for rendering.ply,.spz,.rad, and.rdxGaussian splats onTHREE.WebGPURenderer(with WebGL2 worker fallback when WebXR WebGPU is unavailable), addingoptions.enableSplats(),SplatsOptions,RadixSplatManager,RadixSplatObject, and automaticModelLoader/ModelViewerdispatch while retaining@sparkjsdev/sparkforWebGLRenderer. - WebGPU & WebXR Session Robustness: Added automatic WebGL2 backend fallback in
WebGPURendererwhenXRGPUBindingor anxrCompatibleWebGPU adapter is unavailable, non-stalling CPU depth sensing in WebGPU XR, optionaltargetFrameRateandfoveationLevelconfiguration onOptions, automaticimmersive-vrfallback (fallbackToVR: falseto opt out), and simulated dimming validation inAdditiveDisplaySimulation. - Spatial UI Components, Theme & Android XR Cards: Added
UIToggle,UIProgress, and scrollableUIDropdowncomponents with scene-context roles (switch,progressbar,combobox, andoption), adopted the XR-StudiograyGlassThemeasdefaultThemewith per-corner border radii (borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius), upgraded@pmndrs/uikitto1.0.77, migrated 10 samples to world-lockedUICards, and alignedUICardandUICardEdgewith Android XR via smoothed drag rays (translate.raySmoothing), eased resizing with limit overshoot (resize.smoothing,resize.overshoot), pointer-driven side rim glow, and corner resize arcs. - Phone Companion Controller & Interaction Polish: Added
src/addons/phone-companion/(PhoneCompanion,samples/phone_companion/) to pair a phone via short code or QR code as a WebRTC XR pointer/drag controller and native keyboard with 6-digit verification, ECDH/AES-GCM auth, and open-peer protection (protectOpenPeers), alongside distance-scaled Android XR reticles (options.reticles.scaleWithDistance,hoverRing), 4 XR controller slots for transient pointers,event.stopGlobalPropagation()onSelectEvent, andTHREE.Box3touch-bounds guards inHitRegistry. - XR Session Recording & Simulator Replay: Added
src/addons/session-replay/(SessionRecorder,SessionPlayer) anddemos/session_replay/to record head, controller, select, and 25-joint hand poses (with optional app state and simulator room metadata) on headset or simulator and replay them in the desktop simulator, plus wrist-root simulator hand rotation andSimulatorDisplayFovapp camera FOV restoration fixes. - Camera Profiles, Perception & Plane Placement: Made device camera profiles configurable SDK-wide via
options.deviceCamera.targetDevice,?camera=, and runtimeXRDeviceCamera.targetDeviceassignment (including the new'aura'profile inDEVICE_CAMERA_PARAMETERS), madeAIoptional inObjectDetector, added UI totemplates/08_scene_understandingand a newtemplates/15_planes/template, fixedPlaneDetectortimestamp updates, optimizedplaceOnHorizontalSurface(), and pinned MediaPipetasks-visionCDN URLs to0.10.34. - On-Device Vision & AI Platform: Added
demos/gemma_vision/powered by Transformers.js 4.3.0 with selectable on-device Gemma 4 E2B and Lite (SmolVLM2-500M) vision models, added atokenProvidercallback (GeminiTokenProvideronGeminiOptions) for Gemini Live ephemeral tokens with a reference server intools/gemini-token-server/, and expandedGeminiManagerand Google AI Studio (goo.gle/BuildXR) documentation. - Security, CI & Testing Improvements: Added WebSocket
Originvalidation (verifyClient,XRBLOCKS_RC_ALLOWED_ORIGINS) to the remote-control relay (src/addons/remote-control/server/relay.js) to prevent CSWSH, upgradedvitestto5.0.3and resolved dozens of Dependabot security advisories across root and docs lockfiles, split Playwright E2E CI into 4 parallel jobs running in under 3 minutes, consolidated unit tests, and addedUIExitButtonto multi-card samples.
What's Changed
- feat(core): support WebXR frame rate and foveation by @salmanmkc in #714
- fix(deps): update dependencies to resolve open security advisories by @dli7319 in #748
- feat(demos): add on-device gemma 4 vision demo by @salmanmkc in #642
- fix(world): pin MediaPipe tasks-vision CDN URLs to 0.10.34 by @salmanmkc in #742
- Migrate sample panels from head-locked to world-locked UICards by @dli7319 in #749
- fix(core): use the WebGL backend for XR when WebGPU XR is unavailable by @salmanmkc in #741
- Centers Rotations at Root of Sim Hand by @whuang37 in #752
- Better Hand Pose Authoring For Agents by @whuang37 in #753
- fix(depth): stop depth sensing from stalling WebGPU XR sessions by @salmanmkc in #750
- fix(deps): update vitest to 5.0.3 to resolve security advisory by @dli7319 in #751
- fix(deps): update docs dependencies to resolve security advisories by @dli7319 in #757
- fix(core): fall back to immersive-vr when immersive-ar is unsupported by @salmanmkc in #707
- fix(world): make AI dependency optional in ObjectDetector and add UI to 08_scene_understanding by @dli7319 in #756
- docs: update README and CITATION.cff with BuildXR, AI Studio guide, and GenXR-Bench by @dli7319 in #759
- Fixed Hand Coordinate issue by @whuang37 in #760
- Auto Resizing, UI Documentation, Horizontal Placement Bugfix by @whuang37 in #765
- GlobalStopPropagation and Touch Cleanup by @whuang37 in #764
- Fixing Corner Resizing and Yoga Probes by @whuang37 in #768
- Better Documentation for AI by @whuang37 in #767
- feat(session-replay): record XR sessions and replay them in the simulator by @salmanmkc in #722
- feat(phone-companion): add code/QR-paired controller and native keyboard by @salmanmkc in #713
- fix(ui): draw the slider fill and thumb above its track by @salmanmkc in #770
- feat(ui): add UIToggle for on/off settings by @salmanmkc in #769
- feat(camera,demos): add Aura camera parameters and toggle in EfficientSAM demo by @dli7319 in #772
- feat(ui): add UIProgress for progress bars by @salmanmkc in #771
- fix(ui): hide every part of a UI element when visible is false by @salmanmkc in #773
- test(e2e): report plain values when the phone aim check fails (1/2) by @salmanmkc in #775
- test(e2e): redo the phone aim stroke after the link reconnects (2/2) by @salmanmkc in #776
- chore(deps): bump the ci-actions group with 2 updates by @dependabot[bot] in #780
- feat(ui): add UIDropdown for choosing one of several options (1/3) by @salmanmkc in #774
- feat(templates): add 15_planes template by @dli7319 in #781
- feat(ai): add ephemeral token provider for Gemini Live by @salmanmkc in #725
- fix(core): preserve camera image in overlay screenshots by @salmanmkc in #723
- Add exit buttons to samples missing them by @divyanshus2404 in #785
- feat(context): report dropdowns as comboboxes with their options (2/3) by @salmanmkc in #777
- fix(core): prevent invalid simulated dimming from breaking XR sessions by @salmanmkc in #730
- feat(ui): scroll long dropdown lists (3/3) by @salmanmkc in #778
- fix(input): reserve slots for transient pointers by @salmanmkc in #710
- feat(camera): choose the device camera profile with an option or ?camera= by @salmanmkc in #419
- fix(remote-control): validate origin to prevent CSWSH on relay by @dli7319 in #788
- fix(deps): update lockfiles for Airlock-compatible security advisories by @dli7319 in #786
- feat(ui): update default theme to XR-Studio spec and add per-corner border radius support by @dli7319 in #792
- fix(deps) UIKit update by @whuang37 in #762
- feat(interaction): android xr reticle that scales with distance by @salmanmkc in #794
- feat(ui): android xr cards, smooth ray moves (1/3) by @salmanmkc in #789
- fix(simulator): restore app camera FOV when clearing display preset by @salmanmkc in #731
- fix(interaction): stop icons and text fields from breaking finger touch by @salmanmkc in #779
- feat(ui): android xr cards, eased resize with overshoot (2/3) by @salmanmkc in #795
- feat(ui): android xr cards, edge glow and corner arc (3/3) by @salmanmkc in #796
- chore(demos): bump glasses_ui to uikit 1.0.77 by @salmanmkc in #798
- ci(e2e): split e2e into 4 balanced jobs, cut it to under 3 min by @salmanmkc in #799
- fix(docs): correct typos and wrong link text in Scripts.md by @Anmol-In-Verse in #802
- Unifying and Clearing Old Tests by @whuang37 in #800
- perf(world): optimize subtree bounds and retry throttling in placeOnHorizontalSurface by @nsalminen in #805
- feat(splats): add @sparkjsdev/radix 3DGS support on WebGPURenderer by @nsalminen in #804
- [bugfix] Planes Never Updated by @whuang37 in #806
- fix(docs): correct typos in JSDoc comments by @ADHI020905 in #783
- fix(deps): fix Airlock npm ci and resolve root Dependabot alerts by @dli7319 in #808
- chore: bump to 0.25.0 by @dli7319 in #809
New Contributors
- @divyanshus2404 made their first contribution in #785
- @Anmol-In-Verse made their first contribution in #802
- @ADHI020905 made their first contribution in #783
Full Changelog: v0.24.0...v0.25.0