[Metal Passthrough] upperLimbVisibility not respected in sample code

Hello everyone,

Super exciting stuff released this year!

I was playing around with the Metal passthrough sample code (see: https://developer.apple.com/documentation/compositorservices/interacting_with_virtual_content_blended_with_passthrough)

... and noticed that the upperLimbVisibility set to .automatic does not seem to work and my hand is always on top.

How to reproduce:

  • Draw something
  • Position your hand behind the brush stroke
  • Notice that your hands are always rendered on top

Taking a GPU frame capture reveals that the depth is correctly written.

Xcode: Version 16.0 beta (16A5171c) VisionOS: visionOS 2.0 (22N5252n)

Answered by _clemzio_ in 793989022

I believe this is fixed in the VisionOS Beta 2.

Accepted Answer

I believe this is fixed in the VisionOS Beta 2.

[Metal Passthrough] upperLimbVisibility not respected in sample code
 
 
Q