Giter Club home page Giter Club logo

geospatialapi-unity-starterkit's Introduction

ARCore GeospatialAPI Unity StarterKit

SDK

This sample project is compatible with ARCore Extensions for AR Foundation v1.37.0.
https://github.com/google-ar/arcore-unity-extensions/releases/tag/v1.37.0

SampleScenes

0-TrackingStateMonitoring

The latitude, longitude, altitude, and azimuth of your smartphone and the accuracy of these are displayed on a screen.

1-PlacingObjectAt_LatLngAlt

Show a object with AR at the latitude, longitude, and altitude specified on the Inspector in UnityEditor.
For Altitude, you can choose manual input or terrain provided by Geospatial API.

2-TapToPlace

Placement of a object and saving its latitude, longitude, and altitude and local position.
Reproduction of position of a object at the same position of the real world.
Click below to play the demo video.


Required Setup

Build Setting

[File]->[BuildSettings]
Select your development platform (Android/iOS) and click [Switch Platform].

API Key

[Edit]->[ProjectSettings]->[XR Plug-in Management]->[ARCore Extensions]
Enter an API key created on Google Cloud Platform.

See [Set up a Google Cloud Project] of the official website for how to create an API Key.
https://developers.google.com/ar/develop/c/geospatial/developer-guide

Set latitude and longitude to display objects

If you try the scene named 1-PlacingObjectAt_LatLngAlt , you need to specify the latitude, longitude and height on the VPS_Demo object inspector.
Height should be calculated as geoid height + elevation.
[GeoidCalculator]
https://geographiclib.sourceforge.io/cgi-bin/GeoidEval

[elevetion]
Please search app or web service to provide elevation at the specified point of your country.

Slide deck of tutorial

I held a tutorial event about how to use ARCore Geospatial API in Japan.
A part of tutorial was translated into English. It'll be great if it's helpful for your studying.
https://www.docswell.com/s/Tks_Yoshinaga/5664V5-geospatial-api-en



geospatialapi-unity-starterkit's People

Contributors

takashiyoshinaga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.