Skip to main content
Version: 3.2

How to Exclude Semantic Channels with Mesh Filtering

Semantic Mesh Filtering allows you to set an allow list or block list of semantic channels. These follow standard allow/block list behavior. Using an allow list will exclude all channels not in the list, while the block list excludes all channels in the list.

For a list of usable semantic channels, see Semantics and Experimental Semantic Channels.

Prerequisites

You will need a Unity project with ARDK installed and a basic AR scene. For more information, see Installing ARDK 3 and Setting up an AR Scene.

Your project must also have the Lightship Meshing subsystem. To add Meshing to your project, follow the steps under Creating the Mesh.

Setting Up Semantic Mesh Filtering

To set up semantic mesh filtering:

  1. In the Hierarchy, select the MeshManager GameObject that you created during the Meshing setup.
  2. In the Inspector, click Add Component, then add an AR Segmentation Manager to MeshManager.
  3. Next, find the Lightship Meshing Extension, then check the box next to Mesh Filtering to enable it.
  4. Two options will appear: Enable Allow List and Enable Block List. Choose which lists you would like to use, then click the + below each list to add slots to it. Once you have added slots, enter the names of the semantic channels you would like to allow/exclude, one per line. In the following example, the ground channel is in an allowlist, so meshing will only capture the ground.
Example usage of a semantic filtering allowlist

The allow/block lists will remember your settings and channel lists, even if you disable and re-enable them.

Semantic channels apply to a variety of common objects and structures, and there are some that you will usually not want included when creating a mesh. At minimum, we recommend excluding sky and person using a block list to keep those elements out of your mesh.

Example usage of a semantic filtering blocklist

You can also combine allow lists and block lists to capture specific parts of a scene as a mesh. As an example, if you wanted to capture a mesh of a path through a grassy field, you could allow ground while blocking sky and grass to only capture ground areas with no grass on them, resulting in a mesh of the path. For another example, if you wanted to capture a mesh of an interesting building, you could allow building while blocking person, ground, and sky to make sure the building is all that is captured.

Example usage of both semantic filtering lists