mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

AR Worldscale Excamples need explanations

Open MarjanPl opened this issue 8 years ago • 9 comments

Hi, i just tested the AR Worldscale Examples in release 2.0 on an iPhone X with iOS 12. Besides entering my own token in the setup window i didn't change anything.

When i go outside to test it (tried several locations) it seems that position, rotation and scale are rather off.

From the placed virtual buildings (transparent orange shader) i can hardly see what should be were. Even if using the manual alignment example i am having a hard time. At least i can set the rotation there, but i think the complete scale of the augmentation is off by something between 30 - 50% (scaled down, it seems to small).

As for the setup:

  • i used the development branch from this site.
  • used Unity 2017.4.13f1 (also Unity 2018.2)
  • used an IPhoneX with iOs 12
  • iPhone has Wifi and Bluetooth and location services on
  • location is in Berlin, tried last (52.544058, 13.415392)

As for other information concerning AR WorldScale with Mapbox:

  • i tried to find info on the web, Youtube, map box site including this (https://www.mapbox.com/unity-sdk/maps/examples/world-scale-ar/)
  • i tried other related tutorials, but the problem is, that either the map box version is outdated or the unity editor.
  • there is a note that one has to add Layers to unity - tried that - but after checking some of the game objects still have wrong assignments. This is not an issue when downloading and using the whole project from GitHub and not the release unity package. Doesn't seam to make a difference, by the way.

If i would guess...

  • the scaling issue could be either: in case you calculate something against iPhones screen size. Or because the maps here don't have the resolution you have in your area.
  • the rotation issue: I have no clue.

Information and improvements of the following kind would be helpful:

  • what am i expected to see?
  • what is the ground scanning / plane detection for?
  • the AR Plane seems to be at eye level but should be on the ground (but this is hard to tell)
  • scrolling the map in the manual alignment example is not made for iPhoneX resolution. (scrolls faster than finger position, thus hard to use)
  • Which script is dealing with positioning and rotating the AR Map? Are there public exposed fields in some scripts i should adjust?
  • if Unitys location services are being used, can one swap them out against google maps or apples?

In the moment the AR Worldscale examples seem unusable to me. Would be willing to help testing things here (my coding abilities are not good enough to help here)

Edit: might be related to: https://github.com/mapbox/mapbox-unity-sdk/issues/1128

MarjanPl avatar Nov 12 '18 00:11 MarjanPl

@MarjanPl Thanks for the feedback! We really do appreciate it, and your detailed report on your experience is really helpful. You're right that the documentation could use a refresh. This is something that is planned.

Currently, We're working on implementing ARFoundation into the SDK, and that means that the current AR solution, ARFoundation will be removed. Once we get this done, we'll be able to update the docs. There will undoubtedly be a lot of changes to document, including plane detection, positioning, and rotating that you mentioned in your ticket. I'm also planning on doing a more comprehensive getting started tutorial.

The issues with alignment and rotation are also something that we're working on. Mapbox is going to be focusing on improving the localization of the device and objects in the AR space. Right now, world-scale AR is a bit limited due to this, and we understand to use location data in AR that this needs to improve. Thanks again for the report

jordy-isaac avatar Nov 15 '18 13:11 jordy-isaac

Hey @jordy-isaac , Is mapbox sdk support has been added to unity ARFoundation ? I want to use AR Worldscale with unity ARFoundation.

Aashish-1008 avatar Apr 08 '19 06:04 Aashish-1008

Hope that update come soon.

Alvarden15 avatar May 31 '19 19:05 Alvarden15

hey i am using mapbox AR with unity for instantiating object as per location in AR but mapbox location accuracy is not good , can any one tell how i can accurate GPS location in map box . I am making location based messaging App in AR.

anandp803 avatar Jul 02 '19 13:07 anandp803

Is there any update regarding explanations and the Worldscale example ? I m trying hard to just place some objects in specific longitude and altitude using ARCore and i am really confused . Any help would be much appreciated .

tpaslou avatar Sep 14 '19 20:09 tpaslou

@jordy-isaac Any update on this thread?

ksi3321 avatar Nov 12 '19 08:11 ksi3321

just gonna ping this one up!

saszer avatar Feb 28 '21 00:02 saszer

I would also love a more in-depth look at how to customise and use the world-scale AR example project. So much work seems to have gone into it but one page of high-level overview isn't enough to get started!

josefsHD avatar Jun 18 '21 10:06 josefsHD

Is there any update on the ARFoundation documentation? I am trying to use World Scale AR and the alignment is off and the gps says ignored.

mattmedlin avatar Aug 03 '21 23:08 mattmedlin