In this tutorial, I'll be teaching how to make AR Ghost With Lens Studio Using Cloth Simulation
Check out my example lens below.
Lens: Click Here
In my example, I have taken my 3d model, placed it into blender, and paint it with red vertex color
Tutorial : Click Here
The first thing you'll want to do is go to blender and import your object.
Then select vertex color
Why we need to paint with red color?
We used red vertex color, To bind the cloth to the user head.
make sure you select RGB when you paint.
For my object I paint with red color from the top of the object
when you finish painting import your object into Lens Studio, And make sure that "import vertex color" are Checked.
Now you need to add a new scene object to the Camera,
Then go to Asset Library, to import Cloth Simulation Pack,
When you import cloth simulation pack, Go to the resources panel and click on cloth simulation then Script file, And grab Cloth simulation script into the first scene object that we create.
Then add your mesh into cloth mesh, when you add your mesh you can add any material, I use one of the cloth simulation Materials as an example. Now you can see your object in the screen.
And now we need to add a head binding to make our mesh binding on the head user.
Also you need to add another scene object and grab it into the head binding that we create, So that you can control and resize your Cloth Simulation object.
Then grab the second "Scene object" that we create to Follow object into Cloth Simulation Script. As you can see in the preview our mesh is binding on the head,
Now we can control and resize our object by the second "scene object" that we create.