The Hand Segmentation feature allows you to segment effects to within or around the hand. It is similar to other types of Segmentations, except that it does it over a region rather than the full screen. To see examples of Hand Segmentation, take a look at the Hand Segmentation template.
Adding Hand Segmentation
To add Hand Segmentation into your project, in the
Objects panel, press the
+ button, then choose
This will add a new setup in your scene that will display a texture segmented within the Hand.
This setup has an
Image component that contains a special material that uses the
Hand Segmentation as a mask for
Texture. This object is a child of a
Rectangle Setter which positions the segmented area to be tracked to the hand. Finally, that
Rectangle Setter is a child of
Orthographic Camera, which renders these objects which are in screen space.
Applying a texture inside the Hand
In the object panel, select the Hand Segmentation object. Then, drag your texture from the
Resources panel into the
Texture field. Alternatively, you can click on the
Texture field to bring up the texture selector pop up.
Tip: Take a look at the Import guide to learn how you can bring your texture into Lens Studio.
Additionally, you can select the
Object Segmentation Texture Default material to modify additional options around how your texture is displayed.
- Segmentation Texture: The Hand Segmentation texture (
Resources panel > + > Hand Segmentation)
- Base Color: choose a color to multiply your texture with
- TextureUV: choose how your texture is displayed within the
- Radius & Softness: choose how you want to smooth out the segmentation
Object Segmentation Texture Default material is a graph Material.
Double click on it in the
Resources panel to open it in the Material Editor and see how it works.
Using the Hand Segmentation as an Occluder or with 3D objects
The Hand Segmentation texture is a texture that segments out the portion of the camera feed where the hand is, so by default it is used with an Orthographic camera as shown above.
However, you can also use this texture with 3D objects, as well as to occlude 3D objects. Take a look at the Hand Segmentation template to learn how you can do this.
Still Looking for help?Visit Support