VisionOS RealityKit

I have a plane that is stereoscopic so represents to the user depth that is beyond the plane.

I would like to have the options to render the depth buffer for the pixels or to not render any information into the depth for the plane.

I cannot see any option in Shader Graph Material to affect the depth buffer during render. I also cannot see any way in RealityKit to not render to the depth buffer for an entity.

I'm open to any suggestions.

Answered by richoncode in 796010022

I was able to solve this using the model sort order component. I can now render spatial augmented 3D lines in with my stereoscopic texture content.

AFAIK A stereoscopic material shows a separate image to the left and right eye. There's not really a depth buffer involved.

Perhaps you can conditionally swap between using the stereoscopic image data or left-eye-only image data based on some conditions in the shader graph.

Accepted Answer

I was able to solve this using the model sort order component. I can now render spatial augmented 3D lines in with my stereoscopic texture content.

VisionOS RealityKit
 
 
Q