aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.69k stars 3.98k forks source link

tracked-controls v1.x - only one controller (id:0) is connected #4609

Open smeybi opened 4 years ago

smeybi commented 4 years ago

Only one controller is assigned. Both tracked-controls (left/right- 0/1) are assigned to the left(0) vive controller. I think the property "controller" doesn't work. In v0.9.2 works fine.

`

` https://glitch.com/~aframe-tracked-controls-demo
dmarcos commented 4 years ago

Use vendor specific controls vive-controls, oculus-touch-controls... All controllers are supported

smeybi commented 4 years ago

I used it for the Vive Tracker. There is something for the vive tracker?

jquery404 commented 2 years ago

@smeybi I'm trying to do the same, did you find any solution for this? Thanks

dmarcos commented 2 years ago

Not sure if trackers are supported on Chrome / WebXR. I don't find a profile

@toji Do you know if Chrome supports Vive trackers at the moment? Thanks.

smeybi commented 2 years ago

@jquery404 I haven't found a solution. I haven't tested in a long time. I will try the tracker today and see if it works again and let me know.

smeybi commented 2 years ago

I have tested it with Aframe 1.2.0 The tracked-controls are for WebVR (Gamepad API) and do not support the Vive Trackers anymore (they used to have it) in Firefox. WebXR doesn't support the Gamepad API. I have checked the inputSources (document.querySelector("a-scene" ).xrSession.inputSources) in Chrome and only the Vive controllers are listed. I assume the Vive Trackers are not yet supported in Chrome.

toji commented 2 years ago

Chrome use OpenXR on Windows, which means we need to rely on OpenXR's input mapping system. That system doesn't have a way to iterate over all input devices attached to the system, it only allows you to set up suggested mappings for predefined control sets. As a result internally we produce mappings for the left and right hand controllers, but don't really have a system in place for individual trackers. I have a good interm solution for it at this time either, sorry.

dmarcos commented 2 years ago

@toji Thanks so much for the info. Unfortunate we lost the functionality in the transition to OpenXR. Hopefully we can bring trackers back. A lot of cool in-browser experimentation was happening.

One possible temporary solution is Firefox desktop. I think it's still on the old WebVR implementation and trackers might still work there. Worth a try.

I think there's nothing actionable on the A-Frame side. I'm so sorry for the inconvenience. I keep the issue open as a reference