Creating AR Image Targets in Unity
Zenva
ACCESS the FULL COURSE here: https://academy.zenva.com/product/educational-gamedev-academy/?zva_src=youtube-edu
TRANSCRIPT
Hey everyone and welcome to how to create a crane operator app in Augmented Reality. To begin, lets go down here to where we have our easy AR folder, Prefabs, and drag in the easy AR startup prefab into the scene, this is basically the main Prefab that easy AR will be running on this controls all the rendering, all the image tracking, all the good stuff. So, in the easy AR startup in the parent Prefab, lets paste in our key that we generated on the website here, for our project, like so and that's all we need to do for that part. So now, we can just delete the main camera, as easy AR already has a camera in this prefab that it'll be using. And now it's time to start with our image targets. Now, an image target is basically a specific image such as, this one or this one that we're gonna be using this one for the crane on the left, and on the right for the container and basically once you're using the app the camera can identify these images in the real world such as if you print them off on a piece of paper and it can figure out the position, the rotation and the scale and then render models or particle effects or whatever you want on top of these and for our specific images we'll be having one for the crane, one for the container, one for the truck and one for the UI dashboard that we'll be actually using to control the crane. So we'll close these. And to do that, simply like before, go to the easy AR folder ,Prefabs and this time you go to primitives and we want to drag in the image target Prefab here. Now, at the moment it's pretty bland we can double click on it to focus on it and as you can see, here we are, what we need to do now is over on the right we need to fill in this information, on the image target behavior. For the path, we want to link it to the image target we're using, now if we go to our Assets folder, and go to the Streaming Assets folder, this is where we're going to be putting all of our image targets. Now, with easy AR you have to create this specific folder called Streaming Assets and place your JPEG images in there, this is a folder that easy AR can identify and easily find once the game runs, so it's easy that way, so we have our four image targets, container marker, crane marker, dashboard marker and truck marker. Now if we go to our image target, lets say we're just gonna start with the crane. For our path we'll simply call this crane marker.jpg, because in the path you have to enter in the file extension and down here in the name we can actually just enter in the actual name of it, so we'll just enter in crane marker.
Free Tutorials:
9821148 Bytes