Reputation: 2421
I am wondering is there any options for combining existing ARCore early stage with Google Location in order to place AR objects over latitude / longitude
in the real world? I know this one is possible with ARKit but haven't found any information on such via ARCore.
Any ideas?
Thanks in advance.
Upvotes: 13
Views: 11544
Reputation: 58503
Google ARCore 1.31+ enables your app for global-scale location-based AR experience. Its Geospatial API helps you collect geospatial model's data from Google Earth 3D and Street View images – there are billions of panoramic street images provided by Google VPS. Street View’s content comes from two sources - Google (that uses Street View cars with LiDARs) and private contributors (that use Street View trekker).
To use ARCore Geospatial API, you need a supported device, supported area, and fast internet connection.
Upvotes: 0
Reputation: 1
i am also creating similar app. In my case i want to display video at specific longitude and latitude, I achieved it using geo-fencing. I select a specific point and set radius around it approximately 20m. when i enter in the radius my app start showing video in that area.
Upvotes: 0
Reputation: 3978
I saw this and was thinking about how great this would be. So try to think how like Pokemon Go did.
My suggestions is:
Tracking user location by GPS, when it get in the right lat/lng (don't use one point, but a radio/area) you sent the place of the object/anchor using the user as 0,0 (origin). So will not be perfect, but is a start for this.
And yes, is possible, take a look on World Around Me App
Upvotes: 1
Reputation: 1
I use mapbox, with arcore, you just have to do the "magic" ( when nearby location, transition to ar core scene, and put GO at approximate location ) I used player position, and orientation, than it lays out the level in front of the player, at the feet, with a raycast to the ground, It will only spawn if the ray actally hit a plane(tracked plane), making sure its on the tracked plane
Upvotes: -3
Reputation: 181
A option that's recently emerged would be: https://www.appoly.co.uk/arcore-location/
It allows you to render objects at a GPS location. Currently it offers two example renderers - an annotation, or a 2D image - however you can implement your own custom ones based on the example code which shows 3D models.
It's worth noting that this is based around Android SDK and not Unity etc.
Upvotes: 8
Reputation: 4641
I think that this is not 0/1 type question :)
First of all ARCore is SDK only for mapping the surrounding. It has no computer vision and/or location capabilities.
Your request is possible but you must combine two elements. First you need to work with location (GPS) and calculate that selected location lat/lng is in your view. This quite simple, you can find a lot of tutorials about that.
Than when you will be sure where this point is ( you can also calculate the bearing that will help here) you can use ARCore to pin the 3D model to the world. Probably you will have to make some kind of transformation to change the real world coordinates to your screen
Making the answer simpler: ARCore itself is not able to that, but combining different tools will allow you to achieve this goal
Upvotes: 6