Creative Experiment #2

3.2           Marker based Augmented Reality Video Playback

In this experiment, once again Unity was used as the interactive software to create the marker-based AR project. This experiment does not require to build the application into an .apk file as the interaction can be observed from the computer’s webcam.

Step 1: Open a new project in Unity. Right click on the Hierarchy Area and hover on Vuforia engine to select AR Camera. Delete the main camera. After doing so, open Vuforia Configuration on the inspector box and apply a license key which can downloaded from the Vuforia’s official website.
Figure 3.2.1

Step 2: To get a License key visit
https://developer.vuforia.com/vui/develop/licenses. After signing up click on Get development key.

Figure 3.2.2

Step 3: After entering the appropriate License Name, check the box down below and hit confirm. Now I license key is made.

Figure 3.2.3


Step 4: Simply click on the code to copy it to the clipboard to use it in the Vuforia Configuration.

Figure 3.2.4
Step 5:  With AR Camera selected click on Open Vuforia Configuration. Paste the license key in the box provided.

Figure 3.2.5

Step 6: A new database needs to be added to replace the current default one. Click on add database.
Figure 3.2.6
Step 7: Enter a name to create the Database and hit confirm.
Figure 3.2.7



Step 8: Add a unique target image for the AR object to placed on. Enter an appropriate name and hit Add.
Figure 3.2.8


Step 9: Now click on Download Database to import it onto the Unity project file. Go to assets > Import Package > Custom Package to locate the file and import it to the project.
Figure 3.2.9

Step 10: After importing it. With Image Target selected change the Database to the uploaded Database.
Figure 3.2.10

Step 11: Right click on Image Target > 3D objects > Quad. The quad will be used as the video player for the AR. Rotate it 90 on x axis. Scale it proportionately so it covers the image target. Position it above the image target.
Figure 3.2.11

Step 12: Click on Add component and search for Video player script and attach it. Import the desired Video to the project by going to assets > import asset and locate the video.

Figure 3.2.12

Step 13: Finally drag and drop the imported video to the attached video script under “video clip” click on loop if the video is short and it’s done! Hit play on top after it’s done.
Figure 3.2.13


Result: An AR Video playback was achieved at the end of this experiment. This experiment was successful.

Figure 3.2.14

Comments

Popular posts from this blog

Understanding AR with Vuforia

Creative Experiment #3

Introduction