Hi everyone,
I’m working on a project using RealityKit and encountering an issue with object occlusion. Specifically, I need to disable the occlusion of real-world objects (e.g., tables, walls) in my RealityView. I want virtual entities to render fully, even if real-world objects would normally block their view.
I’ve explored options in ARSession and ARWorldTrackingConfiguration but haven’t found anything that affects occlusion in RealityView. I suspect there might be a setting or approach I’ve missed.
Has anyone dealt with a similar scenario or knows how to achieve this? Any insights or pointers would be greatly appreciated!
Thanks in advance,
Nicolas
Post
Replies
Boosts
Views
Activity
Hello
Although the documentation says PointLight is available for visionos (https://developer.apple.com/documentation/realitykit/pointlight)
It doesn't work when I try to add a light
let light = DirectionalLight()
throws error : 'DirectionalLight' is unavailable in xrOS
Will lights be available later in visionOS RealityKit?