Make this into a prefab by dragging and dropping it into the Prefabs folder. Add a mesh filter, mesh renderer, AR Face, and AR Face Mesh Visualizer to the empty gameobject. Create an empty gameobject in the hierarchy. Next we’ll create a canvas with a button to toggle between the face materials!Ĭreate a canvas and then create a button on your canvas. To the hierarchy, add an AR Session Origin and and AR session as separate gameobjects. In your materials folder create a material for each texture you have and set the rendering mode to Cutout. In your project, add the following folders:ĭrag your pictures for your face filters into the textures folder and create Cutout materials from them. We’ll need these to enable AR on our mobile devices so it can use phone lenses to superimpose the AR picture in the real world.
#Instagram lens studio install#
In the Package manager of unity ( Windows > package manager) download and install AR Foundation, AR Core XR Plugin (if using Android) and/or AR Kit XR Plugin (if you’re building for iOS devices). Want to follow along with the instructor? Submit the form and watch the video tutorial on-demand here. On-Demand AR Face Tracking and Face Filters Workshop Get the Tutorial Project Files and Assets: We’ll be building some of our own Snapchat or Instagram-like filters in Unity. They’re useful for seeing how a pair of glasses look or what hairstyles would look best or even detecting emotional queues. Embrace your wild side!įace filters are snapchat like designs that overlay on top of a tracked face. Check out AR Filters from Lenslist (my favorite are: tiger, deer, and these crazy eyebrows). Snapchat and Instagram are also a good source for inspiration.
![instagram lens studio instagram lens studio](https://i.pinimg.com/originals/66/eb/f1/66ebf166b2cf963577907d23e6a48655.png)
If you want to create face filters for Snapchat, you should use their dedicated web app - Lens Studio. If you go about selling instagram face filters for big money - hey, give us a shoutout. In this beginner AR development guide we are going to be using creative tools in Unity and build a face tracking / face filter app on your desktop.
![instagram lens studio instagram lens studio](https://www.androidheadlines.com/wp-content/uploads/2017/12/Snap-Lens-Studio-4-1.jpg)
Just like emojis, face filters are fun even for someone other than just young people.īut how about building your own face filter applications which uses augmented reality (AR) technology to superimpose your own created face masks, doggie tongues or some other animal masks on your own or your victims face. And isn’t it awesome that you can just use your camera lens to leverage this advanced technology. Sending a voodoo-masked or pig-nosed selfie to your friends through Instagram, Facebook or Snapchat is one of the little joys of life.