google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 401 forks source link

Rendered model is moved when change angle view #454

Closed few2net closed 5 years ago

few2net commented 5 years ago

About my project, I try to attach a 3d model to the physical object. In this video, you will see I'm adjusting the model offset to take the pipe(diameter 6cm) in to the circle(diameter 6cm) which can have 7mm acceptable error.

ARalignment (pixel2, ARcore 1.41) >> https://youtu.be/mDcLIQLUWzI

The problem is when I finish adjusting the offset, I move to other angle view to see the result. I found that the model was moved out of the old place. It will be the worse if I move to opposite view of the first view where I adjusted the offset (see 2:08). I don't know why? but it make me can not adjust offset to real position.

Anyway, I have tried with other apps to investigate this error ARruler >> https://youtu.be/TNGgZp9F_1Q HelloAR >> https://youtu.be/XEP0neolspk AR sticker >> https://youtu.be/3--4wv9jCWI

My questions are

  1. Could someone explain why it happen? it's involved with slam? (now I'm studying about slam)
  2. What can I do to deal with the error?
  3. In project tango, Does It have this error? (I never use it before, sound like a good slam)
  4. Now ARcore is not suitable for precision task (error < 1cm), is it?

I'm just a student. Thank a lot If you please give me some advice :)

fredsa commented 5 years ago

You'll see the best results using anchors, which is what HelloAR sample uses when place Andy figures. There are many factors which may affect accuracy, including the texture/details of the surface (carpet in your case), room lighting, etc.

(If you place 3D models in world space coordinates (i.e. without using anchors), you should expect to see what looks like drift: objects won't feel very attached to the world.)