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

Interactable Behavior doesn't trigger UX changes applied via profiles for NEAR Interaction.

Open shubham-bitsnbytes opened this issue 7 years ago • 8 comments

Describe the bug

Interactible doesn't execute/apply different profile when performing near interaction. It executes all profiles when performing far interaction.

To reproduce

Steps to reproduce the behavior:

  1. Launch latest MRTK ( v2-RC2.1 is what i tested) and open interactables example scene
  2. Make sure that Coffee Mug game object is present in the scene.
  3. Use hand to interact with far. When we press, the coffee color changes in cup and coffee (child element) changes it's position.
  4. Repeat the same action from near the coffee cup. The color change happens

Expected behavior

The coffee cup should show also change color and move below (i.e. appear to be reduced in quantity by changing position) in near interaction mode.

Screenshots

When user presses cup from far: image

When user presses cup from near: image

If applicable, add screenshots to help explain your problem.

Your Setup (please complete the following information)

  • Unity Version :2018.4.4f1
  • MRTK Version : Mixed Reality Toolkit 2.0.0-RC2.1

Target Platform (please complete the following information)

  • HoloLens 2

Additional context

Add any other context about the problem here.

shubham-bitsnbytes avatar Aug 09 '19 09:08 shubham-bitsnbytes

@julenka Please tag some one who can take a look into this issue. Thanks

shubham-bitsnbytes avatar Aug 12 '19 10:08 shubham-bitsnbytes

@killerantz do you have some time to investigate this week?

julenka avatar Aug 13 '19 19:08 julenka

Looking at the Coffee cup in the prerelease branch.

No hand interaction image

Hand near the cup changes the color (Focus) image

Breaking the plane (touch) causes the coffee to move down (Pressed) image

The coffee moves up when moving away, (Not Pressed, back to Focus?) but the color does not change back to the dark color until the source is lost, by releasing the shift key which seems like a bug. image

These states match up to the far interactions. The coffee cup has a Near Interaction Touchable, so it will only respond to near touch, not grip or close air tap.

killerantz avatar Aug 13 '19 22:08 killerantz

The color will change back to the dark color after touch if something else in the scene receives focus.

killerantz avatar Aug 13 '19 22:08 killerantz

Thanks @killerantz & @julenka for your response, but the problem is with "NearInteractionGrabbable". Kindly find the below given scenario for near interaction grabbable beaviour. Sorry for not mentioning that clearly in the earlier post.

1.This is the same Interactableexample.unity scene, but i have changed the NearInteractionTouchable component to NearInteractionGrabbable. I have also highlighted the MRTK version on the both the sides.

image

2.Far interaction works fine in both the version of MRTK (focus and pressed state behaves as desired)

image

3.The below images shows the near interaction Focus working on both the version (I have enabled the proximity light to make sure the hand is in near interaction range)

image

4.The below image shows the issue of NearInteractionGrabbable's Pressed state not working in MRTK2-RC2.1

image

Hope this gives better clarity on reproducing the issue. Thanks and I await your response.

satorihunter avatar Aug 20 '19 09:08 satorihunter

Hi, @Shubham7684, good news! In our MRTK 2.0.0 release which we just released yesterday, we have fixed this :-) Please have a look here

julenka avatar Aug 22 '19 20:08 julenka

Just verified that the behavior works as expected (goes to the pressed state) in the latest mrtk_development, which currently is almost the same as 2.0.0 release (no changes to input or interactable yet since it was just released yesterday).

julenka avatar Aug 22 '19 20:08 julenka

Thanks a lot, @julenka & @killerantz. will check.

satorihunter avatar Aug 23 '19 03:08 satorihunter