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

[XRI3] [BUG] Spatial mouse manipulation are relative to scene origin instead of head pose #880

Closed
AMollis opened this issue Jul 25, 2024 · 6 comments
Assignees
Labels
Package: Input The Project input package is impacted by this issue. Type: Bug A problem with an existing feature that can be fixed with the next patched release.

Comments

@AMollis
Copy link
Contributor

AMollis commented Jul 25, 2024

To reproduce

Steps to reproduce the behavior:

  1. Build sample from Features/XRI3 branch for HL2
  2. On HL2 go to SpatialMouseSample.unity scene
  3. Connect blue tooth mouse to scene.
  4. Move away from origin (move to the left or right of scene content)
  5. Select an object in scene, use mouse scroll wheel
  6. Result 1: Content scrolls perpendicular to head gaze (left-right), instead of parallel to gaze (backward-forward)
  7. Rotate scene content 90 degrees around y axis by grabbing description panel
  8. Select an object, and move mouse up and down
  9. Result 2: Content does seem to move correctly (also the mouse pointer has a hard time intersecting with scene content)

Expected behavior

  1. Result 1: Content to scroll parallel to head gaze (backward-forward)
  2. Result 2: Content to move up and down and can be targeted easily with mouse pointer.
@AMollis AMollis added Type: Bug A problem with an existing feature that can be fixed with the next patched release. Needs: Triage Needs to be triaged. Package: Input The Project input package is impacted by this issue. and removed Needs: Triage Needs to be triaged. labels Jul 25, 2024
@AMollis AMollis self-assigned this Jul 25, 2024
@MaxPalmer-UH
Copy link
Contributor

MaxPalmer-UH commented Feb 3, 2025

Not reproducible in editor on Windows using this branch/scene. Will check when using a bluetooth mouse with a Quest headset. NB HoloLen2 is no longer a test target for MRTK.

@MaxPalmer-UH
Copy link
Contributor

Image

@MaxPalmer-UH
Copy link
Contributor

@AMollis On point 7. is the rotation of 90 degrees achieved with a movement on the mouse with the description panel selected? I can't see how to do this using the controls.

@MaxPalmer-UH
Copy link
Contributor

MaxPalmer-UH commented Feb 5, 2025

So, paring a bluetooth mouse on the Quest 3 works and mouse events for position moved (mouse delta) and scrollwheel changes are received in SpatialMouseInteractor.cs. However, the default viewport that the mouse movement is mapped to appears to be a sort of horizontal plane / volume that sits below the content in the sample scene so no interactions with scene content are possible. I'll look at fixing that bug as part of this work instead.

@MaxPalmer-UH
Copy link
Contributor

Fixed in the above PR. The parent has been changed to be the main camera, which fixes the mouse origin issue and now movement and interaction is with respect to the head origin and looks/works correctly.

@keveleigh
Copy link
Contributor

Fixed in #980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: Input The Project input package is impacted by this issue. Type: Bug A problem with an existing feature that can be fixed with the next patched release.
Projects
None yet
Development

No branches or pull requests

4 participants