Moving Grabbed Objects jitter (Unity) — Oculus
IMPORTANT:

All Oculus Quest developers MUST PASS the concept review prior to gaining publishing access to the Quest Store and additional resources. Submit a concept document for review as early in your Quest application development cycle as possible: https://developer.oculus.com/quest-pitch/

For additional information and context, please see "Submitting Your App to the Oculus Quest Store".
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Moving Grabbed Objects jitter (Unity)

mmchickenshackmmchickenshack Posts: 17
NerveGear
edited July 28 in Oculus Quest Development
Using Unity 2018.4.5 and Oculus 1.38

When I hold an object (simple scene with just a cube) in my hand, then the movement of this grabbed cube is very jittery and not smooth at all.

Using OVRPlayerController with LocalAvatar in TrackingSpace and AvatarGrabberLeft and Right inside this LocalAvatar.
I set the Fixed TimeStep in the Project Settings to 1/72 (0.01388889).

I uploaded a video of this behaviour: https://youtu.be/AoJ_d0d2Dq8

It's not as obvious in the video as it is in VR, but I think you do see the issue at the edges of the cube with the stuttery movement.
Interestingly, when I throw away the cube, the movement is smooth. Also the movement of my hands is smooth, it's only the object I'm grabbing that stutters.

Any idea how I can prevent this?
Thanks!


Comments

  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    edited July 29
    Update: I have the same problem with the demos that oculus provides. seems to be a unity/sdk issue. as you know, version 1.39 is broken in other ways, so i couldn‘t test if this resolves the issue...
    very unsatisfying situation.
  • lamhoanglamhoang Posts: 3 Oculus Start Member
    Add some of your own code, which makes the object your grabbing the child of the grabbing hand. This will remove the jittering.
  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    thank you, that absolutely worked. I found an even easier workaround:

    The solution was to child the hands (in my case Oculus' "CustomHandLeft/Right") to Left- and Righthand-Anchors respectively. Smooth as butter now, even in Unity 2019: https://imgur.com/a/PnTXbOq

    Thanks for your time and help!

  • WolfVolkWolfVolk Posts: 3
    NerveGear
    @mmchickenshack I am experiencing the same issue when using LocalAvatar and AvatarGrabberLeft/Right. Adding them as children to the anchors makes the grab not work. Can you provide more info on how you fixed it?
  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    @WolfVolk I think I had the same issue a while ago. Try using the CustomHands, they seem to work better for me.
  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    @WolfVolk also, uncheck "Parent Held Object" (that broke grabbing for me as far as i can remember) and make sure the parent transform is set correctly.
  • blackfox.studioblackfox.studio Posts: 17
    NerveGear
    @mmchickenshack - having the same problem with AvatarGrabberLeftRight as @WolfVolk. "Parent Held Object" is unchecked and the grab is not working. What should I set as Parent Transform?

  • blackfox.studioblackfox.studio Posts: 17
    NerveGear
    edited August 4
    Ok i set the parent transform to TrackingSpace and the grab is back to work, but the hands movement are still jittery.

  • blackfox.studioblackfox.studio Posts: 17
    NerveGear
    I found out that if you check "Parent Held Transform" on both AvatarGrabberLeft/Right, the object stops jittering while grabbed. Unfortunately this also produced a strange misalignment of the hands while moving them around.
  • mmchickenshackmmchickenshack Posts: 17
    NerveGear
    i‘ve opted to use vrtk 4 now which has none of these problems. it‘s a bit harder to get into, but once it works, it just works. the oculus integration just seems buggy as hell at the moment.
  • viewportviewport Posts: 81
    Hiro Protagonist
    Same here... Simple empty scene in Unity and hands jitter so badly on Oculus Quest, I have tried many Fixed TimeStep 1/72    1/60   1/36  etc...  hope there is a fix of this soon.
  • SawrrSawrr Posts: 1
    NerveGear
    I had a similar issue -- disabling VSync seemed to fix it for me
  • miyam0t0miyam0t0 Posts: 1
    NerveGear


    Adding hands to LeftHandAnchor solved it for me. (Don't forget tracking space as Parent Transform)
  • rc51riderrc51rider Posts: 1
    NerveGear
    edited September 9
    I found out that if you check "Parent Held Transform" on both AvatarGrabberLeft/Right, the object stops jittering while grabbed. Unfortunately this also produced a strange misalignment of the hands while moving them around.
    Thank you!   This fixed it for me also!  I spent an hour trying different settings.
Sign In or Register to comment.