MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Grab issue with Unity 2020 XR SDK on MRTK 2.5.1

Open JarlErikC opened this issue 5 years ago • 6 comments

Describe the bug

When using apps on the HoloLens built with the new XR SDK and MRTK 2.5, grabbable objects are not possible to grab if your hand is rotated more than 45-50 degrees. This makes it difficult for the user to grab and interact with objects without ensuring that they keep their hand rotated straight up or less than 45 degrees. Comparison with the old XR system on Unity 2019, grabbable objects shows that this issue is not present (see video).

To reproduce

Steps to reproduce the behaviour with Unity 2020, XR SDK and MRTK 2.5.1:

  1. Add a cube to the scene with a collider, ObjectManipulator and NearInteractionGrabbable
  2. Select profile DefaultXRSDKConfigurationProfile
  3. Build and deploy to HoloLens
  4. In the HoloLens, grab the object with the hand rotated more than 45 degrees or holding sideways.
  5. Not possible/difficult to grab

—

Repeat with Unity 2019 and old XR system.

Expected behavior

When grabbing a grabbable object, the rotation of the hand should in most cases not impact the registration of grab interaction while the hand is in the HoloLens FOV.

Screenshots / Video

Unity 2020 new XR SDK Unity2020

Unity 2019 old XR system Unity2019

Your setup (please complete the following information)

  • Unity Version 2020.1.9f1
  • MRTK Version 2.5.1
  • New XR SDK

Target platform (please complete the following information)

  • HoloLens 2

JarlErikC avatar Dec 03 '20 10:12 JarlErikC

I find that if you do the air tap with your thumb and index finger closing in full-frontal view, it's fairly consistent at recognizing it but otherwise has a hard time at detecting the grabbing motion. I couldn't get the old XR system to work for me in Unity 2019, so I have no further reference point.

anthony-simetri avatar Dec 14 '20 13:12 anthony-simetri

This has a huge detrimental effect on our applications, so I hope it will be looked into shortly (or we can find some way to fix it locally).

mwarvik avatar Dec 18 '20 07:12 mwarvik

This is only part of the problem for me. In this same setup, I get a lot of errors when trying to set constraints on object manipulation. I am completely unable to restrict rotation to the y axis with RotateAxisConstraint and scale constraint is very finicky on when it will throw an exception I cannot read from the compiled il2cpp. This will result in the user not being able to move the object at all. Manually trying to adjust rotation as a workaround at manipulation event start and end also results in unexpected behavior that is unacceptable for our audience. Working with MRTK has overall been a very frustrating experience. At the current rate, it is likely I will have to try to completely reengineer the object manipulator script to try to get something to work correctly.

anthony-simetri avatar Dec 18 '20 13:12 anthony-simetri

According to https://techcommunity.microsoft.com/t5/mixed-reality-blog/bg-p/TheMixedRealityBlog the support for XR SDK will be dropped in the future, so I guess time is rather spent on OpenXR which will replace it.

yacuzo avatar Jan 26 '21 08:01 yacuzo

This issue also appears with lower Unity version. In our case it's the latest 2019.4.x LTS

Holo-Fiedel avatar Feb 01 '21 18:02 Holo-Fiedel

Sorry for the late response (we've been handling things for the 2.6.0 release!)

We've been able to reproduce this issue and are diving deeper into this. Also, to clarify, OpenXR is another provider to the XR SDK pipeline. We are not dropping support for XR SDK, in fact, we're moving to supporting it more in the future 😅

RogPodge avatar Mar 10 '21 21:03 RogPodge