This tutorial is designed for anyone beginning with mobile development and augmented reality. We will use the Unity 3D video game engine as well as the Vuforia augmented reality plugin to animate some Imperial Walkers so they can take a stroll around your living room. We will go through how to modify Vuforia's sample scene for user defined targets. Vuforia requires the use of a fiducial marker or image target in order to augment a 3D object. The image it requires lets your mobile device know where the augmentation is to occur, and is often used to create a ground plane so you can place objects on top of it. The app we are going to make with this tutorial will allow the user to take a picture of any image they want, and the augmentation will occur on top of that image. This is much less cumbersome than creating a predefined image that the user must print out in order to use the app. This tutorial does not require any previous experience with Unity or Vuforia so it should be very quick and easy to implement.

All code and game assets can be found here: http://wirebeings.com/star-wars-augmented-reality....

Subscribe to my YouTube channel for more videos like this:


Step 1: Download Everything!

-Download Unity 3D: https://store.unity.com/products/unity-personal?_g...

-Download the Vuforia SDK for Unity: https://developer.vuforia.com/downloads/sdk

-Download the Imperial Walker 3D Model and the game assets folder from here: http://wirebeings.com/star-wars-augmented-reality....

-Download the Vuforia sample package for Unity here: https://developer.vuforia.com/downloads/samples

Now, open Unity and create a new project, you can call it whatever you want.

Go to File -> build settings, and switch the build platform to IOS or Android depending on what type of phone you have. If you don't already have the appropriate modules installed their will be a button next to each platform to install what you need.

Drag in the Vuforia SDK into your assets folder, and then do the same thing with the Vuforia sample package.

Unzip the game assets folder and drag in the Imperial Walker .obj file as well.

Mathew I finally worked my way through this and finished late Friday. I had a case sensitivity issue with scripts. I renamed the public class names and that fixed both scripts.<br>This is an awesome tutorial. I had no previous experience in Unity 3d or other similar software. I'm a stay at home mom determined to teach myself how to build augmented reality applications. This was a great learning experience. Thanks so much.
<p>Just replied to your message before I saw this, sorry it took so long I am not on here much. Thats soo good to here though, if you have any other questions I can be reached at matthewhallberg@gmail.com and let me know if there is anything specific you want to learn and I will try to incorporate it into a video. </p>
<p>Also, I plan to build out to my Android phone. What packages do I need to install on my phone? Anything specific? What are those steps to install? Thanks so much.</p>
<p>I'm working on this. A couple of issues that are different from your video. These may or may not be an issue. 1) When I make the script it pops up visual studio for me. Looks different than your environment. I copied pasted the script saved it and ran Build. 2) The next step to create the animation, my Unity environment does not have the tab for animation. See the attached photo. How do I add that tab or why is it missing? 3) Also note at the bottom of this image, there are some error messages. These appeared upon the import of the packages. Will these cause problems with getting this to run properly on my Android? If so how do I fix them. Thanks so much. </p>
<p>can you put this on the app store?</p>
<p>I don't think I can because if licensing issues, I think it might get taken down. Not sure though. </p>
thats sad its pretty cool
<p>thanks so much!</p>

About This Instructable




Bio: My name is Matthew and I attend the University of Pittsburgh. Currently I am a senior, going for a bachelors in Information Science with a ... More »
More by matthewh8:How to Markerless Augmented Reality Tutorial: SLAM Make a Killer Augmented Reality App How to Markerless GPS Based Augmented Reality. 
Add instructable to: