Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRInputSource Gamepad reports empty axes array #190

Open
agandia opened this issue Feb 8, 2021 · 0 comments
Open

XRInputSource Gamepad reports empty axes array #190

agandia opened this issue Feb 8, 2021 · 0 comments
Labels
motion-controller motion-controller package

Comments

@agandia
Copy link

agandia commented Feb 8, 2021

First of all, I am not sure if this is the appropriate place to report this issue, but I will try nonetheless and feel free to move it if necessary.

XRInputSource should be conforming with 'xr-standard' mapping but reports an empty Axes array.

HMD: Oculus quest 2.
Profile used is forced to 'oculus-touch-v3' since a bug from OculusVR reports the following profiles : (2) ["oculus-touch", "generic-trigger-squeeze-thumbstick"]

I load my motion controller profile using the tools given by the webxr-input-profiles package but when I try to retrieve axis data to animate my motion controller (as per the sample code in https://immersive-web.github.io/webxr-input-profiles/packages/motion-controllers/#thumbstick-and-touchpad-components) the components' value object contains the following data.

  1. State reports default
  2. Button reports 0
  3. xAxis and yAxis report 0

The value retrieved from the visualResponse node for the axes is 0.5.

ie. console.log('thumbstick %s , values [state: %s, button: %f, xAxis: %f, yAxis: %f]', component.rootNodeName, component.values.state, component.values.button, component.values.xAxis, component.values.yAxis);

Expected behavior
XRInputSource to have a valid Axes array where the data is updated.

Screenshots
image

Version
├── @webxr-input-profiles/assets@1.0.5
├── @webxr-input-profiles/motion-controllers@1.0.0

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise Version 10.0.18363 Build 18363
  • 3D engine: corporative 3D engine
  • Browser Google Chrome
  • Version 88.0.4324.146

All other buttons and triggers report correct live data and I have managed to animate the corresponding buttons.
I'd appreciate any insight on the source of the issue.

Thank you

@agandia agandia added the motion-controller motion-controller package label Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
motion-controller motion-controller package
Projects
None yet
Development

No branches or pull requests

1 participant