Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ARCore + Location Services

I am wondering is there any options for combining existing ARCore early stage with Google Location in order to place AR objects over lat/lng 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.

like image 632
Oleg Novosad Avatar asked Oct 18 '17 11:10

Oleg Novosad


People also ask

Does ARCore support object tracking?

Anchors and trackables The fact that poses can change means that ARCore may update the position of environmental objects like geometric planes and feature points over time. Planes and points are a special type of object called a trackable. Like the name suggests, these are objects that ARCore will track over time.

What is the use of ARCore by Google?

ARCore is Google's platform for building augmented reality experiences. Using different APIs, ARCore enables your phone to sense its environment, understand the world and interact with information. Some of the APIs are available across Android and iOS to enable shared AR experiences.

What can ARCore do?

ARCore provides a variety of tools for understanding objects in the real world. These tools include environmental understanding, which allows devices to detect horizontal and vertical surfaces and planes. They also include motion tracking, which lets phones understand and track their positions relative to the world.


2 Answers

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.

Annotation example

like image 185
John Wedgbury Avatar answered Oct 06 '22 00:10

John Wedgbury


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

like image 23
Fixus Avatar answered Oct 06 '22 01:10

Fixus