CREATING YOUR FIRST AUGMENTED REALITY APPLICATION IN UNITY

Hello,
In this post  we are going to discuss about how to create a basic Augmented Reality application using Unity and Vuforia.

Please follow the video below...



Description

Steps to follow in Vuforia portal
1. Go to  https://developer.vuforia.com/targetmanager/licenseManager/licenseListing
2. Click on Get Development Key and write the app name →create.
3. After creating the app click on that and you can see the development key. Copy that key.

4. Now, Click on Target Manager.
5. Click on Add database and type a name for your database(select device) and create.
6. Select the database that you have created and add target
  •   Choose  a picture that you desire.
  •   width - 1024
  •   Desired Name  

7. After creating the database, select it and download database.


8. Go to downloads--https://developer.vuforia.com/downloads/sdk and download Unity Extension Legacy.
These are all the steps you need to follow in Vuforia.
Finally you must have
→ Development Key
→ Database Package
→ Vuforia Unity extension
Steps to follow in Unity
1. Create a new Project.(Open unity→New→Type project name→create project 3D )
2. Go to Assets→Import Package→Custom Package→Select Vuforia Unity Extension→ Import.

3. Go to Assets→Import Package→Custom Package→Select database→ Import.
4. In the Assets folder,  Assets→Vuforia→Prefabs.
  Drag and drop the AR camera and Image target from prefabs to Hierarchy.
5. Delete the Main Camera
6. Select the AR camera and in the hierarchy click on Open Vuforia configuration

7. Paste the development key in the App license key section and also select Load database               in Datasets and activate it.
8.Now go to Assets folder, Assets→Editor→Vuforia→ImageTargetTextures→your database 
    In the Inspector change the texture shape to 2D and apply.
9. Select the Image Target in the hierarchy and in the inspector→Image Target Behaviour→ Database and select your database.

These are the steps you need to follow to set up your game for Augmented Reality...

Create your App in Unity
1. Place your 3D objects on the Image Target in the scene. 
2. Save your scene
          File → Save scenes →Type the file name→Save.
3.  Go to File→Build settings → Add open scenes 
4. Switch platform to Android (Select Android and Click Switch platform so that you must see the Unity logo on Android platform)  
5. Click on Player settings →Note down your Company name and Product Name and in the Other Settings→ Identification → Package Name and type the package name in the format com.companyname.productname  
6. Build the game after setting the above steps in build settings and type in the file name.
7. Unity will build the apk (Android Application package) for you.
8. Install the App in your Mobile and Run๐ŸŒ๐Ÿ‘๐Ÿ‘......









Comments

Popular posts from this blog

Mixed Reality Applications - HOLOTOUR

Mixed Reality Applications - ROBORAID

CREATING A BASIC VIRTUAL REALITY APPLICATION IN UNITY