In this lecture I'm going to show you how to create your very own Mocca.
The first thing that you're going to need is some kind of image.
And as you would have learned from the previous lecture needs to be something that has a high level
of contrasts and a lot of interest in it.
And it's also a symmetrical.
Now you can create your own if you're happy to do that with a pint program or you can come to free picks
dot com and find something that will work for you here.
So if I'm after a really quick marker I come here.
These are all vector graphics which are really good because I can scale well and they also have lots
of high contrast and different colors so they're very interesting.
But of course you can also use a photograph if you'd like to do that.
And once you know this process you can go about the act of trying different images for yourselves and
even photographs of yourself and your family as well.
Right.
So this is free.
Pick's dot com if you want to come here and then just find yourself an image that you like now.
For you I've already grab this one and this one and they're attached as resources for this particular
lecture and you can use those if you'd rather than going through the process.
But need to pick one of those.
Then you want to download it once you've downloaded it.
You will need to edit it and resize it because you've got a printed out for it to become a marker.
And you want the printed size to be the same size as the faunal file that you're going to give to the
wicket huge studio in a moment and that file has to be Jide pig or a non transparent pay and G.
Now I've been creating quite large Mocca so the ones that you've seen so far about 10 centimeters by
10 centimeters when you get a giant pig from here or you create your own.
Make sure that the size is set up correctly so I'll just show you how I do that quickly.
I've got that abstract image here.
Open up in this is a finity design.
But you can do this in Photoshop or you can do it in Illustrator is the same process the same concepts
in it.
What I'm going to do first of all is sit the documents size to the correct size for printing.
So I can do that in file in affinity designer and it will be in a similar location in Illustrator or
Photoshop.
The documents size we're going to sit that to sentimentalize for may cause that just makes more sense.
Now you'll see in the dimensions that this particular image its dimensions are 176 centimeters by 176
enemies that is huge because that's like a metre in size.
Now it's 72 DPR.
When you print something out it prints out at 300 DPR if you want a good resolution.
So I'm going to set that to 300 DPR high and that then will be a much more condensed file.
But it's still really really big so I'm just going to change these centimeters here to 10 and that should
update because it's locked at that resolution.
So now at Tencent mean by 10 inches at 300 dpi.
If I hit OK you can see that this document has in factory sized.
And let me just zoom out a little bit.
The document has resized but my image that I had there hasn't.
So you will have to re saw it just to fit into that space which is now going to be 10 centimeters by
10 centimeters.
There it is then all I do is simply say that to a jpeg.
Then when I printed or if I print it from here even Let's have a look.
File Print.
And this is an eyeful sized piece of pipe out of the print settings to print at the actual scale.
And you can see that when it prints it's going to be 10 centimeters by 10 centimeters.
And the J fall itself when you use that to make your Mokka or trying to Mocca it will also be Tensen
amazed by Tensen is.
So that means your scaling is going to be correct when you go to use the marker.
In your experience now these markers that I've been creating quite large for like table top top markers
and you can make them a small as you like within reason of course five and in me is BUSSAU centimeters
would be acceptable up to as big as you like as long as the camera in your device can see the whole
Marka at some point at a reasonable resolution.
Then it's going to be able to detect it so you can have it at poster size.
You can have it painted on the side of a building.
It's not going to matter.
But all I'm trying to stress here is that you've got the right resolution the 300 days prior to printed
out at the actual size.
So that is 10 centimeters by 10 centimeters.
So I'm going to go ahead and print this one out and save it because it's also going to be a resource
for you to get from this lecture.
And then we'll go about the process of putting it into the we could choose studio.
So here we are we could choose Web site.
The URL is on your screen now.
You want to come here.
Go to the developer at the top menu and find the we could choose.
Studio log in.
Click on that and it will take you to the White Cat Food studio Web site now.
So then I ask you to log in when you see this page pop up.
You want to click on Register now.
If you don't have an account and make yourself no can't go through the whole process of verifying your
e-mail and all that then come back and re log in and we will continue with what you do inside the studio.
So here we are inside the studio.
This is what it looks like yours will be empty except for this big orange yellow button that says add
project I've obviously created a whole bunch of projects in the past to create your own project for
the market just click on Add project and then in heah in New project you want to select image.
There's two options as image and object.
Later on we'll come back and create an object as a marker.
But for now I'm just doing a single image.
Now you have to give your project a name so let's just type in the abstract test and create it.
When you're making a real project you're probably going to give it a more realistic name than that.
It will then give you this little box here with the name on it and you can see that currently got no
targets.
And these are the markers that you've created in and just select it to go inside of this particular
project.
Now you'll have another big yellow orange button to press which is to add image targets.
Click on that you'll get a box where you can drag and drop your image into.
Now I'm going to use that abstract image that I've saved to a pig which is also a resource and I'll
just drag and drop that into here.
Then that's going to allow you to put more images we're just doing one at the moment and we'll click
on upload that will then process it and after time it will come back and have added it to these web
page.
All right.
So here we are.
We're done.
We've got a star system at the top which you can see just up there.
And three stars manes that it's a really good.
Mocca Ustaz main's that it's kind of K-1 style.
You might be able to get away with it the most is the easier or the more stable the experience is going
to be at finding it.
So it's just saying that these images are really good to use as a markets got lots of different feature
points between all of the contrasting areas on it.
Now once you've done that what we're going to do is click on this download w t see this is the WJC file
that you've used in the past where we use the bay Mokka one in a previous example and the Greaney one
as well.
This is where you're getting your own.
So click on that it will ask for an email address and then you toss your e-mail address which is basically
your loggin for the system.
Then you'll get an email with the download link for your WTC file.
Once you've done that we're ready to go into unity and set up the project.
So I'll come back and join you inside unity in a new 3-D project and we'll test out new Mako here our
are inside of unity and it's time to set up al Mocca with an augmented object.
So this is a new project I've created.
Now if you remember the steps that we did before we added in the wicked chewed cam Insearch just chart
we could cheer.
Camera that's this big gray box here.
Let's add that.
And we also need an image tracker.
Which is this one here this drag that into the sane as well.
Now of course before you can do this you have to remember to import the week a chewed package that we've
done in the past which will give you a plug ins for all the streaming assets and we could choose.
In fact Walwa here on the streaming assets in we chewed.
This is where you need to drag and drop in your Mocca the fall that you just downloaded that WTC a file.
When you get it it might be called tracker one that you.
You can rename that to anything you like.
Ari nind mine too abstract the WTC because that's what it's trying to say.
I'm just going to drag and drop that into there now that will be available to us back in the hierarchy.
We're going to first of all delete the main camera because we don't need that.
Or we could turn it off and the image Cheka we select That's where we set up the link to a WJC file.
So I've run the Inspectah you want to drop down this list here and then select your abstract from the
ones that it gives you because it found that least in this streaming assets we could choose folder.
OK so once you've done that let's go down here is our trackable the trackable.
Remember you can attach your object to that as a child.
We can also add it into this drawable here.
If you've got it as a prefab it's going to do the same thing as having it as a child or having it in
here.
Now we don't currently have anything to show on Mocca.
So I'm just going to click outside of my hierarchy here and add in a cube just a basic old cube and
just go back to the assets fold top level drag and drop that cube from the hierarchy into the assets
to create a prefab out of it then just delete it out of the hierarchy.
Now if you re select trackable you can then drag and drop your cube prefab into that drawable parameter
property just there and what it's going to do is instantiate your cube on the Mokka whereas before it
kind of was already instantiated when it was a child it just appeared when the Mokka became visible.
With that what we can do now is just go down to the bottom in the inspector and you'll see that there's
a little preview button underneath your image.
Click on that.
And in the saying you will see that image pop up.
And there we go there now we can't see the cube on it because the cube actually doesn't exist yet.
If you want to position your the object at this point before you press play.
Drag and drop a copy of your cue into the sane and then make it a child of the trackable so you can
see there that it has become it.
And it's probably like halfway through if we lift this up so it's because it sits at 0 0 point the origin
of the key to the origin of the trekker it's going to be halfway through.
Now if you want this to be a bit smaller This is the time that we can resize and let's just move it
up a little bit just so it's sitting on the top of the Mokka inside of that black square.
All right now this remember is a prefab this cube so we can then go into the inspect and hit apply.
That's going to wrought all of the scaling values and the height change back to the prefab Dannion asset
so that when trackable instantiates this version of the cube it will be correct.
So now we're going to just delete that test cube that we had and we're ready to try it so press play
make sure you've got your mock printed out and you've got your webcam plugged in of course.
You could build this out to mobile device as well if you like.
The nice thing about being able to run it inside of the editor is that you save a lot of time back and
forth with having to build out which can be a really slow process.
So here's my marker I printed it out and I just get it where the camera can really get a good look at
it and you can see the cube has a pretty edge and it's scaled exactly as we had it in the same way we
set that up and it's quite nice and stable.
So yeah there you go you've created your very own MoCCA and put an augmented object on it.
Now I think it's time for a challenge.
Why don't you create your own very new Marka.
And then what I'd like you to do is use the pub sing a prefab that I've included with this lecture as
well as the Hard Rock wave file to create this type of experience so let me play it and I'll show you
what happens.
So Manyi Mocca is to represent say a big coasta in a pub so that when you bring it out you're going
to get free entertainment that not only do you get the snow up here or actually I'm a guitar player
really kind of pro ball and an easy going guy.
The music is being given is super bowl.
So you should be able to play.
She sang quite nicely and then will be back in the next lecture and I'll show you how that works.