As a result of the coronavirus (COVID-19) outbreak, we have a reduced capacity to review effects and delays in publishing are expected. Learn more.
Occluders make AR effects more realistic by hiding things that would be hidden in real life. They're particularly useful when you're placing 3D objects on someone's face.
Occluders are made using an object and a material.
In the image on the left there's no occluder. The arm of the glasses is visible when it should be hidden by the head. On the right we've added an occluder that covers the face. The arm of the glasses is no longer visible:
Any 3D object can be used as an occluder.
If you're occluding the face, use a face mesh. This will cover the face and respond to its movements.
To occlude the volume of the entire head, use the head occluder object included in the Spark AR Studio face reference assets.
Once you've created a material, in the Inspector change:
The material will be transparent, but still hide objects behind it.
In the material's properties you might want to check the box for Double Sided. For example, so the back of the face mesh is also occluded if the user turns their head to the side.