Click flickering rapidly on 2 finger pinch - Quest
Describe the bug
Started happening after upgrading to MRTK v2.6 When doing a 2-finger pinch, before the index and thumb meet there is a rapid fire click flickering. When the 2-fingers finally meet, it goes back to normal.
I've included a video below demonstrating the issue.
To reproduce
Setup a new MRTK unity project for quest following the directions in the documentation. Build and install to Quest 1 or 2 headset.
Expected behavior
No rapid input flickering when pinching to interact with something.
Your setup (please complete the following information)
- Unity Version: 2019.4 LTS, 2020.2 & 2020.3 LTS
- MRTK Version: v2.6 & v2.6.1
Additional context
https://user-images.githubusercontent.com/35086581/112251889-4b47cd80-8c19-11eb-8e82-2c9454c0c0bc.mp4
+1 I also experienced this behaviour
I also saw something similar. Does it also happen with the left hand? Edit: Ah, from your video it also happens with that. With me it only happened with the right.
@rogpodge have you seen this?
I haven't seen this issue before. The flickering of the pointer reminds me of a bug we had before where mrtk would rapidly flicker between near and far interaction modes, so it's possible we had a regression there (will investigate)
+1 can successfully reproduce with MRTK 2.6.1 & Unity 2020.3.1
Not sure if this is relevant, but this code snippet from OculusHand.cs (line 282-291) caught our eye.
if (IsPinching)
{
// If we are already pinching, we make the pinch a bit sticky
IsPinching = pinchStrength > 0.85f;
}
else
{
// If not yet pinching, only consider pinching if finger confidence is high
IsPinching = pinchStrength > 0.5f && ovrHand.GetFingerConfidence(OVRHand.HandFinger.Index) == OVRHand.TrackingConfidence.High;
}
If I'm hovering at a pinch strength like 0.6, wouldn't I bounce between these two conditions in a loop?