Skip to main content

Occluders

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Introduction

A basic hole-in-the-ground effect created with an occluder.

Occluders are visual elements used to mask other objects in your scene. These are handy for creating effects which hide portions of rendered geometry. For example, you can create a "hole" in the ground by occluding elements of a scene (as shown in the image above).

On SPECS, an occluder hides virtual content and leaves the real world visible in its place, because black isn't displayed. The hole-in-the-ground effect still works: the occluder hides only the virtual ground. See Additive Display and Color.

This guide explains how to create an occluder in Lens Studio.

Creating an Occluder

An Occluder is created by applying an Occluder material to any visual object in your scene.

Create the Material

In the Asset Browser panel, select + > Material > Occluder.

Apply the Material

Select any Scene Object that has a Mesh Visual component.

In the Inspector panel, set the first Material property of the Scene Object's Mesh Visual component to the Occluder material you created earlier.

Preview

In the Preview panel, you should see that the other visuals in your scene are now occluded by the Scene Object to which you applied the Occluder material.