supermedium / moonrider

🌕🏄🏿 Surf the musical road among the stars. Side project built by two people in a few months to demonstrate WebXR.
https://moonrider.xyz
MIT License
581 stars 225 forks source link

Windows Mixed Reality controller doesn't work (HP Reverb G2) #124

Closed hgouveia closed 3 years ago

hgouveia commented 3 years ago

I've tried my HP Reverb G2 (WMR device) with Google Chrome ( 87.0.4280.88 ), Microsft Edge ( 87.0.664.55 ), Microsft Edge Dev (88.0.705.9), and Firefox (83.0) (this goes through SteamVR) , and none of them recognized the controllers, but if I test this https://mixedreality.mozilla.org/hello-webxr/ , it actually works the controllers

i downloaded the code and i modified , https://github.com/supermedium/moonrider/blob/master/src/components/controller.js#L30 adding this el.setAttribute('tracked-controls', hand); also below added the list events taken from here, https://aframe.io/docs/1.0.0/components/tracked-controls.html#events,

image

and finally added the tracked controls in this list, https://github.com/supermedium/moonrider/blob/master/src/state/index.js#L222 , this made the hand track to work, I can see the controller and move it around, I also added an event listener to the hand element called buttondown, and is triggered correctly, I see the logs

but still, I can't push the Begin button, also the blue line from the controller never trigger the hover event or anything, I also noticed not too long I needed to get closer to the button, but still no interaction

hgouveia commented 3 years ago

Working with latest version, probably fixed afer the bump of AFrame version, thanks!