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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Unstable AR Objec

Discussion in 'AR' started by ooichiahau_unity, Aug 15, 2023.

  1. ooichiahau_unity

    ooichiahau_unity

    Joined:
    Jan 16, 2023
    Posts:
    6
    Hello everyone,
    I have been working on creating an AR Portal app in Unity using AR Foundation for both Android and iOS platforms. The app's purpose is to detect a plane (Markerless) through the device camera and then position the portal once the player clicks on the screen.

    However, I've run into an issue where the portal isn't stable and tends to move back and forth. It's important to note that this problem only seems to occur on an Android device (Samsung Galaxy Tab A8), and there are no similar issues on iOS devices (iPhone 6s Plus and iPhone Xs Max).

    Do any of you have any ideas about what might be causing this? Thanks
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,497
    Android has worse tracking, especially on older and lower-end devices.
    The latest LTS versions (2021-2022-2023) should have an update to improve stability a bit, but it still might not be fully stable.
    You could try forcing 60 fps instead of 30, but not sure if this actually matters. Most likely it's an issue that google/android has to fix with ARCore
     
  3. ooichiahau_unity

    ooichiahau_unity

    Joined:
    Jan 16, 2023
    Posts:
    6
    Thanks for your reply.

    Does Samsung Galaxy A8 considered lower-end device?
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,497
    Probably mid end, but most tablets don't have great camera's (haven't tried the A8 tho)
     
    ooichiahau_unity likes this.
  5. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    824
    What versions of Unity, AR Foundation and ARCore plug-in are you using?
     
  6. ooichiahau_unity

    ooichiahau_unity

    Joined:
    Jan 16, 2023
    Posts:
    6
    The version of Unity I am using is 2021.3.18f1, AR Foundation and ARCore XR Plugin are 4.2.8.
     
  7. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    824
    Hm, I'm not aware of any tracking issues that could be affecting you on those versions. I suspect you might just be noticing the difference in tracking quality between the two platforms. In recent years ARKit has been noticeably more stable.
     
    ooichiahau_unity likes this.
  8. ooichiahau_unity

    ooichiahau_unity

    Joined:
    Jan 16, 2023
    Posts:
    6
    Thanks for the reply.
     
    andyb-unity likes this.