Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Ar camera texture flickers green.

Discussion in 'AR' started by Hash-Buoy, Nov 27, 2020.

Thread Status:
Not open for further replies.
  1. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    I am getting a weird green flicker all over the camera bg texture, the foreground 3d model remains unaffected.
    Also what I noticed that when the camera is fully covering the 3d object the flicker intensifies.
    Whereas when the object is too small it stops flickering.
    There is something that is triggered when it comes closer in the vicinity of the 3d object.

    And this only happens on Android, works fine on iOS.
    Please refer to this video:


    Any help is appreciated, thanks :)

    Edit :
    It seems to be the fire particles , if i switch off the fireparticles[particle system + point light] the flickering stops. But this behaviour is only happening on android that too only for pixel phones. On other android phones it works fine , and also work fine on ios devices.
     
    Last edited: Dec 1, 2020
  2. Deleted User

    Deleted User

    Guest

    Hi Hash-Buoy,
    Were you able to find a solution to this problem?
     
  3. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    Nothing yet :(
     
  4. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    It seems to be the fire particles , if i switch off the fireparticles [particle system + point light] the flickering stops. But this behaviour is only happening on android that too only for pixel phones. On other android phones it works fine , and also work fine on ios devices.
     
    Last edited: Dec 1, 2020
  5. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    This was introduced in the latest 2.1 and 3.1 packages. A fix is pending, but it is already fixed in 4.0 and 4.1 if you are able to upgrade.
     
  6. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    Also, this only affects multithreaded rendering, so a temporary workaround is to disable multithreaded rendering on Android.
     
  7. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
  8. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
  9. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    You cannot disable it at runtime, no. That is an Editor API and affects the final build.

    Try disabling "Graphics Jobs (Experimental)" too (this only affects Vulkan and ARCore only supports OpenGLES).
     
  10. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    Sorry, missed one question. No, 3.x+ are not compatible with 2018.4 LTS. What exact package versions are you using? Can you post your project's
    manifest.json
    here?
     
  11. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    These are the packages being used
    "com.unity.xr.arcore": "2.1.2",
    "com.unity.xr.arfoundation": "1.5.0-preview.6",
    "com.unity.xr.arkit": "2.1.2",
     
  12. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    Disabling Graphics Jobs (Experimental) and multithread together did the job, now it renders without the flicker.
    Thanks for the help!!!
     
    Fpaciello and shacharoz like this.
  13. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    Glad that solved it for you. Earlier, you said it only happens on certain devices. For one device where this did happen, can you provide the following information?
    • Device manufacturer, model, and O/S
    • Version of Google Play Services for AR (ARCore):
    On Windows, use:
    adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"

    On macOS, use:
    adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
    • Output of
      adb shell getprop ro.build.fingerprint
     
  14. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    Sorry had to leave for a couple of days on an urgent basis.
    I faced this issue on google phones, pixel 3 and pixel 4a.
    I can send stats for pixel 3 as the other phone belongs to the tester.

    • Device manufacturer, model, and O/S : Google , Pixel 3 , Android

    Sorry i need more help in answering the last 2 questions , as I am not quite familiar with the cmd. I get adb not recognized as an internal or external command.
     
  15. shacharoz

    shacharoz

    Joined:
    Jul 11, 2013
    Posts:
    98
    i have experienced the same issue, on Samsung A21-S
    with unity 2019.4 LTS
    and AR foundation vs 4.0.1

    after removing multithreading it is SOLVED.

    only had opengles3 (without Vulkan)

    thank you for this. it drove me crazy!
     
    Hash-Buoy likes this.
  16. hasion01

    hasion01

    Joined:
    Nov 11, 2021
    Posts:
    4

    i have a similar question , please help me have a look .
    https://github.com/Unity-Technologies/arfoundation-samples/issues/985
     
  17. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,018
Thread Status:
Not open for further replies.