Photo
With Lens Studio you can easily create Face Lenses by importing an image of a face. This technique is perfect for creators who specialize in makeup, face painting, and other non-digital media. The Photo Template shows you how to import an image, align it to the face and make specific areas visible like just the lips.
If you are interested in adding Photo to your existing project, you can utilize the Photo asset in the Asset Library.
Tutorial
Guide
This tutorial assumes you have an image that contains a face. We will use the image below in this guide.
Importing your Texture
Once you have your image, you can import it into Lens Studio as a texture by dragging it into the Resources
panel.
Applying your Texture
Next, click Face Mask [EDIT_ME]
in the Objects
panel to select your face mask. Drag your texture into the Texture
field in your Inspector
panel.
You can also press the field next to Texture
to open up the resource selector and select your texture.
You can see your Lens in action by checking the Preview
panel. If you don't see a face press the camera switch button to flip to the front camera.
You can additionally use your webcam to preview your Lens on yourself by pressing the web camera button.
Aligning your Texture
To align your texture to the face, first select the Face Mask [EDIT_ME]
object in the Objects
panel. Then, in the Scene
panel, press the Detect Face
button. Lens Studio will then try to match the anchor points to your image.
Aligning Details of your texture
If you need to, you can touch up the anchor points to fit more closely to your texture. Select any anchor point and you will be able to move it around. You can also select multiple anchor points, and move / resize multiple anchors simultaneously.
Applying an Opacity Texture
By default, Lens Studio will apply your texture to the whole face. You can choose to show only some parts of the face instead by pressing the field next to Opacity Texture
and selecting a texture under the Opacity Textures
folder. Opacity Textures show everything in the white regions of the texture and hide everything in the black regions of the texture.
Changing Blend Mode
You can change the blend mode of your texture to have it blend more with the face by clicking the Blend Mode
drop down in the Face Mask
component in the Inspector
panel.
Changing Opacity
You can also modify an image’s opacity by moving the Alpha
slider in the Face Mask
component in the Inspector
panel.
Previewing Your Lens
You're now ready to preview your Face Lens experience. To preview your Lens in Snapchat, follow the Pairing to Snapchat guide.
Related Guides
Please refer to the guides below for additional information: