Search Unity

Bug Line Renderer jumps around (flickers) - OVRCameraRig + CenterEyeAnchor or HandAnchor

Discussion in 'VR' started by nemo_unity26, Apr 26, 2021.

  1. nemo_unity26

    nemo_unity26

    Joined:
    Sep 5, 2020
    Posts:
    1
    I've noticed this bug on multiple Quest projects now. Line Renderer is showing this really weird flickering behavior at runtime. Has anyone else experienced this?

    It seems like both the origin and end point for the Line Renderer are shifting rapidly, despite the parent object not shifting around that much. Line Renderer was attached to an empty Game Object, and was made a child of CenterEyeAnchor. Using the Oculus Integration, OVRPlayerController.

    Pretty sure this is a bug, but I might just be missing something simple.

    Other LineRenderers in scene that are children of animated GameObjects are behaving just fine.
    forUnityForum.JPG
     
  2. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    Attaching to CenterEyeAnchor means it will draw from center eye position but it doesn't take into account timewarp which will reproject the image to better line up with where your head actually is.

    This sort of problem is solvable with a head-locked reprojection layer, see oculus documentation here: https://developer.oculus.com/documentation/unity/unity-ovroverlay/.
     
  3. xue-xue-xue

    xue-xue-xue

    Joined:
    Sep 8, 2021
    Posts:
    4