An object that creates matte textures you use to occlude your app's virtual content with people, that ARKit recognizes in the camera feed.
SDK
- iOS 13.0+
Framework
- ARKit
Declaration
@interface ARMatteGenerator : NSObject
Overview
Use this class when you want full control over occluding your app's virtual content, based on people ARKit recognizes in the camera feed.
Note
Apps using one of the standard renderers (ARView
or ARSCNView
) don't need this class to effect people occlusion. See frame
for more information.
To assist your custom renderer with people occlusion, matte generator processes alpha and depth information in a frame's segmentation
and estimated
to provide you with matte and depth textures. You use these textures to layer people on top of your app's virtual content.