Welcome to another fun DeepAR tutorial! This time we’re going to show you how to create create your own 3d assets your 3d masks and import them into the DeepAR Studio app – specifically a very popular one – cat ears!

There are multiple ways of achieving the same results in this case we will start with the texture that we will assemble and merge all the parts in one single file. In order to keep it simple you can use multiple textures but it’s better and it’s lighter for the processor if you use only one.

So let’s start to create a square 512 by 512 should be enough and we will fit all the parts in the same file we will export it as a PNG in order to preserve the transparency. In the offer channel then we will open Maya or the 3d editor that you like and then you import the tester that you just created into the program we will use that as a reference and we will model on top of that. This is a technique known as 2.5D.

It’s basically a 2d planar model with some depth to it in a 3d space. This technique really works for this particular case. Once the 3d model is completed we want to create a UV. The UVs are the 2d planification of the 3d model in this case since we model on top of the reference of a 2d plane. We want to do a planar projection – after that we can apply the same file we created before as a texture for this model.

Now we can get rid of the reference and stick to the model we just created. We should open the outliner and we should name the geometries just created to keep things organized.

Now we want to make sure the pieces are in the right place.  For that we will import the dense mesh and we will move and rescale our parts accordingly in order to be more accurate.

You should rotate the dense mesh 25 degrees in the x-axis. We should delete history and reset transformations now we’re ready to export our model. For that we will select the geometry that we want and we export the selection. We should export it in the FBX file format.  We recommend FBX 2011 or 2012 in binary format.

You can create or import full-blown 3d models — you don’t need to stick to the 2.5 D approach but let’s jump back to our cat mask and let’s import it into the DeepAR Studio app. Let’s start by importing the FBX and then we will add the texture file.

After this we want to connect the shader to the texture then we press refresh model and we can test it right away. Now let’s say that we want to add a deformer to the face — i.e. we want to make the user eyes look bigger. We go back to Maya we create a duplicate of the dense mesh. We deform that duplicated mesh and then we apply it to the original dense mesh as a blend shape. After it’s done we rotate the advanced mesh back to zero (back to the original position) and we make sure that we export both the mask assets and the dense mesh back to the DeepAR Studio app.

We will import a new mask as we did before and you’ll notice that now we will have both the 3d assets you created and the deformed face and there you have it!!

If you have any feedback please do get in touch with us!