DEV Community

Akira Game
Akira Game

Posted on

AR Game ~ Geospatial Creator ~

Table of contents

  • Background
  • What is Geospatial Creator
  • How to use Geospatial Creator

Background

I am develop AR Game with Unity, AR foundation and so on. To learn AR development, I am researching about AR and the software related it. This blog shows the research and the process of developing AR game. If you have a question, I am happy to answer it.

When you are implementing AR Game, you need to go out to verify AR scene because you need to check whether AR contents are placed nicely in person, which can lead to wasting a lot time. To avoid the task, you can use Geospatial creator. It helps you place anchors without code in Unity. This post will show what is Geospatial Creator and how to use it.

What is Geospatial Creator

Before this was available, it had been necessary to go to the actual location to check if the AR content was displayed. A lot of programming was also required, which made the implementation time-consuming. However,by using it, you can visualize, build, and launch 3D digital content in real world location through Photorealistic 3D Tiles.

How to use Geospatial Creator in Unity

Reference

API Authorization

You need to enable these below API in Google Cloud Platform.

  • Google Map Tiles API
  • ARCore Geospatial API

Configure in Unity

You mush enable ARCore and ARKit in your Unity project.

Edit > Project Settings > XR Plug-in Management

Image description

Image description

Add Cesium

The Geospatial Creator uses a third party Unity package called Cesium to render Google Map Tiles in the Unity Editor's Scene window.

  1. You need to download it from the below link.

Releases

Image description

  1. Install the downloaded package in Unity

Enable Geospatial Creator

You need to set up API key and enable Geospatial Creator.

Image description

Add a Geospatial Creator Origin with Map Tiles

Add a Geospatial Creator Origin component with Map Tiles in your project.

You need to set API key too. Also, you can put the position's latitude, longitude, and altitude where you want to create.

Image description

Add and place a Geospatial Creator Anchor

Add a Geospatial Creator Anchor component in your project.

You can place any objects in your porject.

Image description

Top comments (1)

Collapse
 
abhishekmeena profile image
Abhishek Meena

Hello akira, I want to make a campus wide game on AR using Geospatial creator in Unity, but i think that is not feasible, can you suggest me the steps i should take in Geospatial creator or any other method