arkit-occlusion.md 674 Bytes
uid: arkit-occlusion

Occlusion

ARKit provides support for occlusion based on depth images generated each frame by ARKit.

There are two types of depth images ARKit exposes through the provider's implementation of XROcclusionSubsystem implementation:

  • Human Depth: distance from the device to any part of a human recognized within the camera field of view
  • Human Stencil: value designating, for each pixel, whether that pixel contains a recognized human

Requirements

Human Depth & Human Stencil requires Xcode 11 or later, and it only works on iOS 13+ devices with the A12 Bionic or higher.