Step by Step Making Simple Android-Based Augmented Reality Using Unity 5.1.1 and 5.0.5 Vuforia

Hello bloggers .. Have not update the article. This time I will discuss the tutorial create Augmented Reality applications on Android using the Unity 5 and Vuforia 5. Actually this is nothing new in this blog, I've made a previous article of this sort here.But due to the rapid update of Vuforia and Unity consequently today many who are confused follow my tutorial because it is no longer relevant. Since the number of questions and requests, so this time I will discuss about how to create Android-based Augmented Reality application using Unity 5 and Vuforia 5.

Ok immediately wrote the following are tools and materials:

     Unity, in this tutorial I'm using Unity 5.1.1f1. Unity can be downloaded here.
     Vuforia SDK, in this tutorial I use vuforia-unity-5-0-5. Vuforia can be downloaded here. Select the 'Download for Unity'.
     Android SDK, these are the tools required to create android apps. Can be downloaded here.

Immediately, we entered into a tutorial. But before getting into the tutorial You can download projectnya advance on the link below.


Step 1: Open the Unity and create a new project.


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC1vN78oBYxT8cPwEJZYD6XUEZvVMgiEqk4sNcj7iYQpizoBAyxgnPw26FWwOThxwCmcuRDFZrub4JFhkMjOyyL98-1XfdacaE1cIXLc8mwyLuUYfnMYQYGvXMegyGpdQ5QvY451Art-8/s400/1.jpg

Step 2: Change the project to Android

 Ubah project unity ke android

Do not forget to make settings in the player settings

Pengaturan player 

Adjust the company name and application name

Atur nama company dan nama aplikasi  

And also setting the bundle identifier

Atur bundle Identifier  

Step 3: Import Vuforia SDK with a double-click

Double click Vuforia SDK  

Centang semua elemen import
  
Centang semua untuk import Vuforia SDK 

Step 4: Enter AR Camera and Image Target into the scene, delete Main Camera.

Masukkan ARCamera dan ImageTarget ke dalam scene 

 Vuforia supports debugging on a PC using a webcam camera. But if the hardware has not been in support Vuforia you can disable this feature.

Disable 'Don't use play mode' jika error 

Do not forget to save scene with Ctrl + S every change to avoid unwanted


Step 5: Define ImageTarget marker with a click and then click 'No targets defined. Press here for the target of creation! '

Definisikan marker untuk target 

You will be redirected to the website Vuforia. Login to log into your account. First click the 'Add License Key' on the 'License Manager' to create a license. This license will be related to the price you pay. Relax, for this tutorial, you can use a free license.

  
License manager pada Vuforia 

At no license code you need to put in your code. Copy all that code and then enter it on your project ARCamera.

Lisensi Vuforia 

Enter to AR Camera

Masukkan license ke ARCamera 

Then define markers in the target image. In the 'Target Manager' click 'Add Database'

Tambahkan database 

Enter the name of the database, and then upload marker. Upload your marker will be displayed and unrated.

Marker yang di upload di Vuforia 

This time I used the following marker, you can use the other markers.

Marker 

Upon completion of the download datasetnya, select 'Unity Editor'. Then you will get a file with the extension .unitypackage.

File .unitypackage berisi dataset marker  
 Step 6: Import the database files by double-clicking the database file with the extension .unitypackage you get from Vuforia. Then specify the dataset used in ImageTarget

Tentukan dataset pada Image Target 

Place the object that will appear on the AR over Target Image. Create the object becomes the child of ImageTarget. In this example I use cube object by clicking the 3D Object GameObject >> >> Cube

Menletakkan object AR  

AR Camera configuration to load the dataset

Konfigurasi ARCamera untuk me-load dataset  

Step 7: Start the project by clicking on File >> Settings >> Build Build. Copy the .apk file to your Android device and run the application.

Preview aplikasi Augmented Reality Unity + Vuforia  

Preview aplikasi Augmented Reality Unity + Vuforia 

It's finished this tutorial, hopefully this article useful. The project of this tutorial can be downloaded by clicking the link below.

Click here to download project

Final words We are sorry if there are deficiencies or wrong words, keep the spirit and continue to work :)
 
 
 

 

Related : Step by Step Making Simple Android-Based Augmented Reality Using Unity 5.1.1 and 5.0.5 Vuforia

0 Komentar untuk "Step by Step Making Simple Android-Based Augmented Reality Using Unity 5.1.1 and 5.0.5 Vuforia"