Oliver Edis

ViroReact 3.4.0: Quest Gets Hands and Sound, Phone AR Gets Depth

ViroReact 3.4.0: a tracked hand skeleton with joint distances, for hands and sound on Quest and depth maps on phones

ViroReact 3.4.0 is out, and most of it is about Meta Quest. Your headset app can now follow the user's hands joint by joint, fire sound effects instantly, react to images in passthrough and record the session. That's a lot of the gap between a nice demo scene and something people actually want to play.

Phones get something too: your AR app can read a live depth map, and when an AR session fails to start, it finally tells you why. There's no React Native or Expo bump this time, so if you're on 3.3.0 it's a one-line upgrade.

Quest gets hands and sound

Set onHandUpdate on ViroXRSceneNavigator and you get 25 named joints per hand, up to 30 times a second. Pinches, grabs, pointing, your own custom gestures: all buildable now, in React. It costs nothing when you're not listening.

Sound was the other thing holding games back. Mounting a component for every footstep and laser blast adds up fast. Now you preload your clips once and fire them with ViroSound.playOneShot, straight from memory. That works on iOS too.

Two more for the headset. Image markers now work in passthrough, so a poster on the wall can kick off your experience. And you can record a mixed reality session with startRecording. Both need a Quest 3 or 3S on Horizon OS v74 or later.

Characters that switch animations without a re-render

If you've built a character that flips between idle, walk and jump, you'll know the pain: every clip change was a React re-render. ViroGameLoopUtils.playAnimation and stopAnimation take React out of that loop entirely, on Android, iOS, visionOS and the web. Need a clean slate? stopAnimation({ mode: "reset" }) snaps a model back to the pose it loaded in.

Phone AR can see depth

When depth is already running on a phone (for occlusion, say), getDepthMap() hands you the current frame's depth in metres, with confidence and the camera pose. That's the raw material for measuring, smarter placement and scanning.

And onARSessionError ends a classic guessing game. If a session won't start, you now find out why: an ARCore failure, an unsupported device, or a camera permission the user said no to.

Also in 3.4.0

  • Shared physics. ViroPhysicsReplicator keeps physics bodies in sync across devices in a co-located session.
  • Android catches up with iOS on per-node shaders and scene-level drag, pinch and rotate.
  • Better scans. Low-light recording options, and getCaptureConditions() so your app can ask for more light or slower movement.
  • Remote models. ViroObjectDetector can load a model from a URL and cache it on the device.
  • Web renderer 1.4.1 picks up animation commands and game-loop transforms, and warns you when a scene can't work as written instead of failing silently.

Upgrading

npm install @reactvision/react-viro@3.4.0

Stay on React Native 0.88 and Expo SDK 58. If you ship to the web, install @reactvision/viro-web-renderer 1.4.1 and copy its wasm/ and slam/ folders again.

Three small things to check:

  • exitVRScene() now returns a promise. Existing code keeps working.
  • On Android, early controller ray calls can now reject instead of crashing or hanging, so wrap them in try / catch.
  • On Android, setting an animation prop again with the same values no longer restarts it.

The full list is in the changelog and the GitHub notes for ViroReact 3.4.0 and viro-web-renderer 1.4.1. Or skip the reading: point your coding agent at the ViroReact MCP server and ask it what changed since your version.

Building something with hands on Quest? Show us on Discord. We'd love to see it.

Get the ReactVision newsletter

Product announcements, including ViroReact, ReactVision Spatial, Editor and MCP updates, direct to your inbox. No spam, and you can unsubscribe at any time.

Subscribe