Clear
Back

Occluders in Spark AR Studio

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.

Example

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:

Choosing an occluder object

Any 3D object can be used as an occluder.

Occluding the face

If you're occluding the face, use a face mesh. This will cover the face and respond to its movements.

Occluding the head

To occlude the volume of the entire head, use the head occluder object included in the Spark AR Studio face references assets.

Adding and editing the material

Once you've created a material, in the Inspector change:

  1. The Shader Type to Flat.
  2. Opacity to 0%.

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.

Learn more

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Frequently asked questions

Have a specific question? Maybe it's been answered.


Read FAQs
Was this document helpful?