Gjm:unity3d HIAR-"QuickStart" Viii. developing cloud-aware applications

Source: Internet
Author: User

Develop cloud-aware applications

In order to solve the problem of identifying the number of images and the online application cannot dynamically modify the recognition image and AR content, we have integrated the cloud recognition feature in the new version of HiAR SDK for Unity (v1.1.x and later). This article will show you how to use HiAR SDK for Unity to create AR applications that support cloud recognition.

This article describes how to use the HiAR SDK to create a simple AR application that supports cloud recognition under Windows systems. Before you begin, complete the following preparatory work:

Register HiAR Account

Get AppKey and Secret

Create Atlas and associate apps

Import SDK

Step 1. Create a new Unity project and import the SDK

Run the Unity program, create a new unity project, and then import the Hiar_sdk_unity-x.x.x.unitypackage file from the directory in the SDK package lib into the project, please refer to the following link:

Import SDK

Step 2. Create Hiarcamera

Please delete the Main Camera created by default in the project, then Assets/HiAR-Unity/Prefabs drag the Hiarcamera, and cloudrecognition in the directory to the Hierarchy window, and ensure that the cloudrecognition "Auto Cloud R Ecognition "is checked.

Auto Cloud recognition is selected to indicate that the cloud is recognized automatically in the app run, otherwise, no cloud recognition is performed.

Step 3. Set AppKey and Secret

In the Hierarchy window, select Hiarcamera, and in its corresponding Inspector window, find the AppKey and Secret options and fill in the information.

Tip: If you do not specify the correct AppKey and Secret, the app may not function properly or cloud recognition, because cloud recognition needs to be mapped through the AppKey and Secret with the apps you created in the HiAR admin background to identify the identity atlas.

If you have not yet obtained AppKey and Secret, please refer to the following link:

Get AppKey and Secret

In this step, the functionality of the application has been completed, and the difference between the local identification application is that there is no need to add the local identification library and AR content, if you want to export Android Program (engineering) or IOS project, please refer to the relevant documentation.

Export Android Engineering, apps

Export IOS Project

How to preset local recognition

If you want the application to pre-set some local recognition content, as local recognition should be, add imagetarget to Hiarcamera, and the relevant AR content. You can refer to the example of Hello world for a way to operate.

Create Hello World

For older versions of documents

This article is written based on the latest version of the SDK, and some of the instructions and actions may not apply to the old version, where you can find the old version of the document.

Applies to HiAR SDK for Unity 1.1.13 and the following versions

Gjm:unity3d HIAR-"QuickStart" Viii. developing cloud-aware applications

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.