google-ar / codelab-geospatial

Apache License 2.0
34 stars 34 forks source link

Geolocation not properly aligning #18

Open travis-rothbloom opened 1 year ago

travis-rothbloom commented 1 year ago

Using Unity 2021.3.17f1 and deploying to a Pixel 3 using Android 12 SP1A.210812.016.C2, I was able to achieve phone geolocation as evidenced by displaying the geometry and seeing that it aligned with the buildings (below-right). However, the actual 3D model I wanted to display (see below-left) should've been on the building itself. Screenshot 2023-05-18 175137

Video of the app in-action, showing that the 3D model many meters away from where I placed in Unity: https://photos.app.goo.gl/iYgXBWSVkvghr3DJ9

I have been able to get this project to work with another model in another location. What is the best way to debug this all? image

travis-rothbloom commented 1 year ago

I found that the issue was that somehow, the anchor was disabled. Seems like everything is resolved now.