derenlei/Unity_Detection2AR

Android: Anchor is always offset quite far from detected object

ROBYER1 opened this issue · 2 comments

I know you mentioned you would look into fixing this already, just recording it here

On Android with ARCore (using Sony Xperia XZ3 for my tests), the anchors placed on detection are always at least 30cm out from the detected object when the anchor is placed. This behaviour is consistent on android in my tests with different dishes.
Screenshot_20201202-231240
Screenshot_20201202-170552

Hi,

I have pushed a simple fix here 59547cd.

Roughly scan the surrounding area before placing the anchor will help improve localization. In addition to that, iOS usually performs better than android.

Hope it helps.

Hi Deren

Those are good tips, your latest fix push didn't do it but I found the Anchor script was only looking for planes, the reason the markers weren't spot on was because it was raycasting only to planes, not feature points
#8