Search Unity

ARFoundation 2.2 - Black Screen

Discussion in 'Handheld AR' started by GeorgeMincila, Jul 19, 2019.

  1. GeorgeMincila

    GeorgeMincila

    Joined:
    Feb 28, 2016
    Posts:
    12
    I updated my app to use the new ARFoundation 2.2 and now when I launch it, the UI is visible, but what should be the camera stream behind it is all black. Even the unique yellow features points do appear and they seem to be tracking, but nothing from the camera.

    Any idea how this can be fixed?
    (Unity v 2019.1.10f1)

    I do see the error below in the Android Studio Logcat:

    Code (JavaScript):
    1. NullReferenceException: Object reference not set to an instance of an object
    2.       at ...ARCameraBackground.CreateMaterialFromSubsystemShader ()  
    3.       at ....ARCameraBackground.get_subsystemMaterial ()
    4.       at ....ARCameraBackground.UpdateMaterial ()
    5.       at ....ARCameraBackground.OnEnable ()
     
    Last edited: Jul 19, 2019
  2. blackattack

    blackattack

    Joined:
    Dec 1, 2015
    Posts:
    1
    Hey, i think you forgot to add the AR Camera Manager Script at your AR Camera Objekt. Hope it helped also other users with this problem :)
     
  3. Creepbee

    Creepbee

    Joined:
    May 1, 2019
    Posts:
    1
    Hey, i have the same problem. I use 2019.2.0f1. when i build an run an AR scene to my Galaxy S9 the 3d objects apears but the camera feed is not present but only a black background. The script is on the camera.