Guides

How to create an Augmented Reality App



This video provides a step-by-step guide explaining how to create an augmented reality (AR) app using Unity and Vuforia – a popular game development engine you can download for free from www.unity3d.com.

AR apps allow you to define and recognise objects in the real-world and overlay additional/alternative content on top of them when they are viewed through a mobile phone or tablet camera screen.

This tutorial teaches how to create two sorts of AR content:
– a replacement image used to swap one playing card into another – the perfect AR magic trick!
– a video overlay that turns a static photograph into a moving video clip (a technique recently popularised by the labels on bottles of “19 Crimes” wine).

The video of JFK was downloaded from the internet archive digital video library, here: https://archive.org/details/1960_kennedy-nixon_1
A screenshot was taken from the video to use as an image target using VLC: https://www.videolan.org/vlc/index.en-GB.html

You can access further information in the Unity user manual at: https://docs.unity3d.com/Manual/UnityManual.html

47 Comments

  • Stefan Michaelides

    thank you for the video, it was extremely helpful. Do you know if it is possible to add a record button so when it is pushed on the handheld device it records and saves to the phones library ?

  • Kyle Ayton-Laplanche

    thank you for this video. Any updated version for unity 2019.1.4f1? like how to interact with the video from the phone?

  • Greg Z Fainberg

    Thank you for your video it was very well explained and easy to follow. My question is can you do a video on how to publish and host your AR Demo creation so I can have other people view a poster or coffee cup or printed banner etc…using their android or iOS devices. Thank youbince again. Also just subscribed and sharing links to your video and channel.

  • K Mc

    The video sound plays before it detects the image, as soon as the app runs. Is there a feature I missed here while building?

  • Bernd Riemke

    Hi! 🙂
    The Video is great!
    But in the moment i have a big problem to let unity vuforia with ar running under android 🙁
    Have anyone an idea what is wrong?
    Wich version is running stabil ?
    I become under android after the app is starting the unity logo an then only a blck screen on my mobile 🙁

  • T Z

    Great video – you're just so good at teaching it!!
    And since you love escape room games, why not teaching us an escape room for AR or VR, please?

  • Rob McGowan

    Thank you for that demonstration. I entered the video scene in 1980 with 1" and 3/4" editing systems and had seen something in AR last year and thought I could never afford that, but you have shown that it can be done. Seeing is no longer a reason to believe with augmented reality in the picture. Interesting that they use an astro-not as a sample.

  • Flo Rayner

    Thanks for the vid!
    I just have one problem that I can’t seem to understand.

    When I build for android and install the app, instead of my video playing ontop of my image target a white box appears. (It seems to work fine in unity?)

    If anyone knows the reason for this and how I can amend it please let me know. I would be enternally grateful! 🙏🏼🙏🏼🙏🏼🙏🏼

    Thanks again!

  • Wondr Box

    Thanks for the video. I have tried it but in the video overlay, only the audio is coming as output. No video clipping moving. Can you please help what can be wrong.

  • Naya Geovani

    can you help me, i just follow your tutorial but the sound of my video instantly play before the marker tracked. how to solve that?

  • Kuldeep kadu

    It's showing me install latest Vuforia 8.1.10 in unity I installed it but where to store the destination folder of Vuforia in unity..Help

  • Amarpreet seble

    hello thanks for the great video, I have a bit of a problem, when I run the ar app , the video audio starts playing before it recognises the target image, and when it recognises the target image it starts to later point in the video where the audio is at at the movement and not from beginning. meaning the video is running in the background but pony appears after the target image appears. can please help?

  • DIẾN NGUYỄN THỊ

    Hello teacher! I now start to study about Unity, but after do it, I dont know how to play?
    1/ Which photo i will print?
    2/ And which material to print?

  • Davlat920 Irgashov

    I did not succeed gives the same error

    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:buildslaveunitybuildEditorMonoBuildPlayerWindowBuildMethods.cs:191 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:buildslaveunitybuildEditorMonoBuildPlayerWindowBuildMethods.cs:97 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

  • Fatima Zulfiqar

    I am working on AR based Android app for human anatomy. For that i need to annotate/ add labels on my 3D model. How can I do that? Can you guide me plz?

  • roboedar

    Has anyone actually had success with this tutorial? Willing to paypal someone money to walk me through. Been working on this for 3 days downloading various versions, trying my best to replicate this tutorial, but there is simply too much information missing it seems. Can't pay a whole lot, but willing to pay for the help at this point. When the guy creates VR camera things are all pointing in different directions compared to my computer, and he doesn't explain why the perspective is different when we create it compared to in the tutorial. Even with the exact same version as him I haven't been able to replicate this tutorial with success. Got it halfway working only to open the APK on my phone and have it only show a blank black screen while I can hear the video playing. It can be quite frustrating to follow a tutorial to the T yet have completely different files and orientations being produced without explanation from the author.

    Key issues missing from this tutorial that I've figured out need to be changed are the angle of the camera, the field of view setting for the camera, as well as the angle for the quad and target, and when you turn the project into an APK the result is just a black screen. Video automatically plays without seeing the target much like many of you guys' trials. At 18:48 in the video you can also see that he has a black screen yet somehow his app works both on the computer and on the phone. At 11:45 in the video, the green arrow points up, just like the target. However, in all versions I have downloaded and tried (2017,2018,2019), when the quad is made, the arrows move with the 90 degree rotation, meaning the green arrow is now rotated 90 degrees, yet on his computer the arrows don't rotate. I presume this could be the reason why people are having issues, but again, just a wild guess.

    Please inbox me if you were able to follow this tutorial with success and are willing to walk me through it. Will pay once tutorial is successfully replicated together. Thanks a lot in advance for the help. Sucks the author doesn't reply to his subs.

  • Anshu Sinha

    Thanks for this video. It's very helpful. Can you please let me know how to modify this so that I can swipe between the different images ?

  • surjeet singh

    Thank you and Great Tutorial. I would like to ask what if the the video directly play without showing the target in the Camera?

  • Rishabh

    Hey an earnest request to you….how to implement a search bar to search for a query with Sqlite DB in AR unity…Plzz want a video asap bro….

  • Dantrex37

    Hi, thanks for the tutorial. I have a question. Is there a way to use a usb webcam instead of the laptop one for a better view?

  • Hazem Rabie

    it's very helpful & Amazing
    many thanks for you

    i had just one issue that the when vedio is running there's no audio sound and i tried many many time with all options related to audio but it doesn't work

  • 1989jimbob

    Wow this took me a long time, about an hour and a half but that includes making the asset from scratch, but it worked! Thank you very much!

  • Avocado's Production

    Dude WTF u are doing a good toutorial and a certain point u just say "u may have to install the android SDK" leaving me in a big deep s***t and with just a reference to a unity page that does not explain a dam thing…. aaaaaaaah

Leave a Reply

Your email address will not be published. Required fields are marked *