mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
721 stars 214 forks source link

Object placement issues on real world AR #800

Closed AlanNess closed 6 years ago

AlanNess commented 6 years ago

I've been working on a project using unity and mapbox to place objects in real world locations, for some reason as I move around the camera the objects don't stay in place and move along the camera, does anyone have any idea how to make this more accurate?

Here is a link to the video https://drive.google.com/open?id=1vSsUOsDmI5spYsw6DyDwB-5c8nFmc9lI

Thanks a lot

Alan

jordy-isaac commented 6 years ago

@AlanNess Thanks for the ticket. How are you placing the objects into your scene? @apavani any ideas on what could be happening with these objects?

citizen12 commented 6 years ago

I get similar behavior, FWIW.

On Tue, May 22, 2018 at 9:09 AM, JW notifications@github.com wrote:

@AlanNess https://github.com/AlanNess Thanks for the ticket. How are you placing the objects into your scene? @apavani https://github.com/apavani any ideas on what could be happening with these objects?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mapbox/mapbox-unity-sdk/issues/800#issuecomment-391048901, or mute the thread https://github.com/notifications/unsubscribe-auth/AMGR-z7lcjm1oMC9UnuJospckT4m_-G-ks5t1DgsgaJpZM4UHF6c .

-- James Osborne citizen12 studio http://www.citizen12.com

apavani commented 6 years ago

Hi @AlanNess The issue that you are seeing is being caused because of the drift introduced with ARKit. Try walking slowly and you'll notice that when ARKit gets a richer set of points to process with a slow moving camera. Thus, it can make better sense of how much your camera has moved in AR space when you move by some distance in real world space. I would recommend playing with the scale value on the ARController script. But, that might not necessarily be the issue here. You may have to look up guidelines on how to solve for drift. Let us know what you find out.

jordy-isaac commented 6 years ago

Closing this one out. Please feel free to re-open with any new information or if you need any more assistance.

hansschaa commented 4 years ago

I have the same problem, 3D objects moving when i show whit the arcamera :/