Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

ARKit object placement drifting?

Discussion in 'AR' started by Autarkis, Feb 3, 2018.

  1. Autarkis

    Autarkis

    Joined:
    Oct 10, 2011
    Posts:
    319
    I'm wondering if anybody is seeing truly solid world placement of your object with ARKit? I constantly see drift happening even with the default samples that ship with the ARKit unity plugin.
    Tried it under many different light configuration and different environments, but nothing shows any real improvements.
    The models that I'm displaying are pretty small ( 14 inches or so in width), but then again, the default ARKit samples are also pretty small, and I'd have thought that the samples would display correct tracking behavior.
    Any workaround?
     
  2. John1515

    John1515

    Joined:
    Nov 29, 2012
    Posts:
    249
    Has nothing to do with Unity or the code in your project, and because it is apple's code that does the tracking.
    Make sure you are in a bright environment with no movement visible to the camera. Also don't be in a moving object yourself (bus/train).
    And make sure your environment has enough "features". A wooden floor is great. A supersmooth white reflective floor is not good.
    I did experience a some differences between iOS devices in tracking. Seems like some are a bit better calibrated than others? Not sure though.
     
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    4,005
    are you anchoring? are you hit testing in a way that only finds actual surfaces? are you resetting world origin? these can all help.

    What about scale of world and assets? that can affect drift too.