Posts

Post not yet marked as solved
1 Replies
756 Views
We are experimenting with People Occlusion on our existing ARSCNView-based AR experience. Prior to testing People Occlusion, we had a ground plane (represented by an SCNPlane) that is placed on a detected horizontal plane and configured with a colorBufferWriteMask of SCNColorMask.alpha to represent a transparent plane that our models can project shadows onto. Because of this, we have an SCNLight that has a shadowMode of .deferred as seen here:let light = SCNLight() light.type = .directional light.intensity = 150 light.castsShadow = true light.shadowRadius = 4 light.shadowSampleCount = 16 light.shadowMode = .deferred light.zFar = 1000 light.color = UIColor.white light.shadowColor = UIColor.black.withAlphaComponent(0.5)This was working well for us until we added the .personSegmentationWithDepth frameSemantics to our configuration. The moment that is added, the shadows disappear. Toggling the .personSegmentationWithDepth frameSemantics configuration causes the shadows to appear and disappear. Is there something that we are missing that is preventing us from having People Occlusion enabled, but shadows to also appear?
Posted
by nuudles.
Last updated
.