Repository navigation
v3.2.2
Viro on the web catches up with native: pinch, rotate and fuse, drag in live AR, styled text, material effects, node transform reads, camera reads and AR hit tests, a light estimate from the camera, sound that mixes with video on iPhone, and recovery from a lost WebGL context. On Android, a minified VR build keeps the GVR classes its native library needs. Renderer binaries are rebuilt on virocore 3.2.2. The web build needs @reactvision/viro-web-renderer 1.2.0.
Web
- Gestures:
onPinch,onRotateandonFuse; drag in live AR and the 3D navigators, withFixedToPlanein the Studio host. - Node refs:
getTransformAsync,getBoundingBoxAsync,getMorphTargets, andsetNativePropsfor transform, opacity and visibility. - Text:
ViroTexttakesfontWeight,fontStyle,extrusionDepthandouterStroke. - Materials: alpha, bloom threshold, colour write mask and chroma key.
- AR:
onAmbientLightUpdatefrom the camera feed, camera transform and position reads,ViroARHitTestResulthit tests with the ray, world-point and position variants, andresetARSession(true, …). - Navigation and animation:
Viro3DSceneNavigatornavigates, AR scenes getarSceneNavigator, and animations fireonStart/onFinish, start relative ones from where the node is and honourdelayon model clips. - Studio web host: animations follow the native rules,
ALERTshows a dialog over the canvas,onSceneChangefires after a navigation, and assets wait for tracking. - Sound mixes with video on iPhone, and held-back media plays at the first gesture.
- A lost WebGL context recovers: the navigators remount the scene on a new renderer.
Android
- A minified GVR / VR build keeps
com.google.vr.**, whichlibgvr.solooks up by name. AR-only apps were not affected.
Check when upgrading
- Web: install
@reactvision/viro-web-renderer1.2.0 (the peer range is now^1.2.0) and copy its wholewasm/folder, which now carries the Roboto faces styled text uses. - Android on Expo SDK 58: R8 is on for release builds by default. Build a minified release APK and open it on a device before shipping. With the ONNX detector, use
@reactvision/react-viro-onnx1.0.3, whose rules keep ONNX Runtime.