Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question AR Foundation and iOS - Lighting issues, disappearing/flickering objects, content placement, etc

Discussion in 'AR' started by InGAMEMain, Jan 4, 2021.

  1. InGAMEMain

    InGAMEMain

    Joined:
    Oct 20, 2020
    Posts:
    5
    Hi, I've been working on a project with Unity 2020 and AR Foundation for the iPad Pro 2020. There are a few different issues I'm stuck on that I could use help with

    1. Lighting looks great in editor but looks dull and much worse on platform

    2. On platform, when I moved the device around, objects flicker or pop in and out at times

    3. I'm using ARSessionOrigin.MakeContentAppearAt for placing content based on the user's preference and orientation. This seems to be moving the camera around in an unexpected way. What I see as "forward" through the device is not what Unity thinks is the camera's transform.forward. I'm trying to use that to allow the player to move forwards, but it doesn't seem to work properly. The transform.forward seems to point in a different direction based on how the content was placed using MakeContentAppearAt. Not sure what I should be doing differently.

    4. One thing I'm trying is to use AR occlussion to allow the user to take a photo (screenshot) of someone or themselves with some AR content next to or behind them. This works, but the image quality of the person looks very bad - like the camera feed is low resolution or something. Plus the occlussion quality isn't too great for this. Just wondering if there's anything I can do to make this work better.

    In Editor:

    Image 9.png

    On iOS : You can see the lighting quality difference as well as objects against the walls have disappeared leaving only shadows. They flicker in and out as I move the device around.

    upload_2021-1-4_13-53-55.png
     
  2. InGAMEMain

    InGAMEMain

    Joined:
    Oct 20, 2020
    Posts:
    5
    Can anyone help with this, especially the lighting issues which seems like some sort of bug?
     
  3. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,070
    InGAMEMain likes this.
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
    InGAMEMain likes this.
  5. InGAMEMain

    InGAMEMain

    Joined:
    Oct 20, 2020
    Posts:
    5
    Hi, thanks for your suggestion. I had already done the first few steps before, but I hadn't assigned the URP asset to all quality levels.(I am using URP btw)

    I've done that now and tested again and visually nothing has changed. The moment the scene loads, for a split second I see the correct lighting and then it immediately reverts to the more dull and washed-out one you see in the screenshots above.

    Is there anything else that comes to mind that you recommend I should check? Thanks again :)