Search Unity

Resolved Screen Flickers AR Android URP

Discussion in 'AR' started by apiotuch_unity, Nov 26, 2020.

  1. apiotuch_unity

    apiotuch_unity

    Joined:
    Jun 28, 2019
    Posts:
    45
    Hello,

    I had AR using ARFoundation going with standard pipeline. I converted my project to URP. Now when I move the Android device around to scan the room, the screen flickers grey. Sometimes full screen, other times it is blocks of grey. It looks like some sort of rendering interruption. I have not tested with iOS. This flickering only occurs when the AR camera is on.

    Update:

    I believe it occurs when a raycast no longer detects a ground plane or when it first detects a ground plane.
     
    Last edited: Nov 27, 2020
  2. robertRSG

    robertRSG

    Joined:
    May 5, 2015
    Posts:
    6
    Hi!

    Have you solved this already? I'm trying to fix it too.
     
  3. apiotuch_unity

    apiotuch_unity

    Joined:
    Jun 28, 2019
    Posts:
    45
    Not yet. I did manage to cut down some of it. Any of my objects that I instantiated I made them children of an AR Anchor. That cut down half off the flickering but I still get flickering when I look away from the ground plane.
     
  4. AaronXRDev

    AaronXRDev

    Joined:
    Dec 13, 2014
    Posts:
    24
    I had this same issue. I went into my build settings -> Other Settings and unchecked Multithreaded Rendering and it went away.
    uncheck.jpg
     
    apiotuch_unity likes this.
  5. apiotuch_unity

    apiotuch_unity

    Joined:
    Jun 28, 2019
    Posts:
    45
    Disabling Multithreaded Rendering actually made it always gray.

    Update:
    I tried it again with it disabled. Looks like the permissions popup was interrupting something causing the constant gray screen the first time. When I entered it again it was fine. No flickering.
     
    Last edited: Dec 7, 2020
    AaronXRDev likes this.
unityunity