Hand tracking in WebXR in visionOS Simulator

I can't seem to get any hand tracking working in the simulator. And it will fail to launch webXR requesting hand tracking. So I can't test any controls in it. How is it possible to test controls in WebXR ?

Any of these should work

https://threejs.org/examples/?q=xr#webxr_vr_handinput_pressbutton

Replies

This one is not exactly what you want, but I think you can get some idea. Give it a try.
https://github.com/AlohaYos/VisionGesture

I have transient-pointer input source fully working now in WebXR in Safari. The controller connects/disconnects within a pinch. so a pinch release disconnects. So its hard to detect raycast and hover effects. selection and raycast happens on selectend event.

  • Could you share any demo about transient-pointer? I used some code like this: let controller1 = renderer.xr.getController(0); let controller2 = renderer.xr.getController(1); scene.add(controller1); scene.add(controller2); …… but I can't see hand in immersive mode. I can only see my hands when I refused the hand-tracking permission.

Add a Comment