Search Unity

Resolved AR Core image Tracking drift

Discussion in 'AR' started by mosqui2000, Jan 12, 2021.

  1. mosqui2000

    mosqui2000

    Joined:
    Oct 15, 2020
    Posts:
    2
    Hello,
    I'm a new AR beginner. I found a problem in image tracking. When I move my camera horizontally or vertically, my prefab will also move. Follow is my test video link: https://drive.google.com/file/d/1KfrXFL_0YAfzcbQajeM47yeyFERr9CdA/view?usp=sharing

    I hope some can get me suggest or hint to deal with this problem, thank you.
    My unity version: 2020.1.14f1
    My ARFoundation version:4.1.1
    My ARCore XR Plugin version:4.1.1
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    Howdy! Bounced this one off the team. Seems it's difficult to determine what is happening in the video. It was advised you try to reproduce with different and smaller prefabs. Also, debug log tracking position rather than just relying on visuals.
     
  3. mosqui2000

    mosqui2000

    Joined:
    Oct 15, 2020
    Posts:
    2
    Thanks for your suggestion. I found to deal with my problem is not use AR Foundation to develop my project. AR Foundation seem can't match the mobile phone's g-senor. When I move my camera horizontally or vertically, the prefab still drift even though I use the smaller prefab. Finally I download the ARCore SDK for Unity, and the prefab drift problem is solved.