Search Unity

AR Foundation - Image Tracking: Placed object continues to update rotation

Discussion in 'AR' started by CJRobertson932, Jan 12, 2020.

  1. CJRobertson932

    CJRobertson932

    Joined:
    Jul 11, 2016
    Posts:
    6
    I seem to be having an issue with image tracking using AR Foundation's implementation of ARCore. I'm using a Galaxy S7 Edge for this test project.

    Scenario:
    Detect am image and instantiate an object (in this test case, a cube) at the center pose of the image. The image is static so there is no need for moving image detection. Once placed, the object stays in place and that's it.

    Outcome:
    The instantiated object's rotation is continuously being changed. It's almost like AR Foundation/Core is losing sight of the image and having to figure out where it's at again. To clarify a bit further, kind of feels like the object is attempting to rotate to face the camera. This also happens on the stock example code without changes.

    If anyone can bring some insight into this it'd be much appreciated.
     
  2. Fantastic_Balage

    Fantastic_Balage

    Joined:
    Dec 12, 2019
    Posts:
    10
    Hi CJ, I'm facing with the same issue it seems.

    My first idea was to try to play with the Tracked Pose Driver Scriptas as you can see it in the description but in AR Foundation 3.0.1 it seems they removed this from ARSessionOrigin's GameObject.

    Have you found a solution?
     
  3. Skaterlion

    Skaterlion

    Joined:
    Jan 6, 2018
    Posts:
    4
    Following..
     
  4. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    226
    TrackedPoseDriver is replaced with ARPoseDriver. Something like that.
     
  5. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    226
    Make sure the instantiated object’s rotation isn’t updated? Only position.
     
  6. jiungerich

    jiungerich

    Joined:
    Jul 26, 2019
    Posts:
    18
    I am having the same issue. From what I have found this is not just limited to Image Tracking but if you just instantiate an object in space at the beginning of an AR session it starts to float away and change position as you move the camera.
     
    LPOvalle26 likes this.
  7. Fantastic_Balage

    Fantastic_Balage

    Joined:
    Dec 12, 2019
    Posts:
    10
    Thanks for the idea, this is something worth trying!
     
  8. greddu9t

    greddu9t

    Joined:
    Sep 24, 2019
    Posts:
    7
    Same problem here, the object keep sliding and the rotation is always changing..
     
  9. Fantastic_Balage

    Fantastic_Balage

    Joined:
    Dec 12, 2019
    Posts:
    10
    Hi @greddu9t we moved the object we instantiate to the world space - working so far.
     
  10. mown90

    mown90

    Joined:
    Nov 30, 2018
    Posts:
    9
    anna_vd and LPOvalle26 like this.