Rendering Issues with UI and Line Renderer on visionOS Build (URP 3D Sample, Metal Mode)

Hi everyone,

I’m encountering some unusual rendering issues when building a URP 3D Sample project in Metal Mode for visionOS. Here are the details:

Issue: Certain objects like UI elements, the Line Renderer (used for skeleton hand tracking visualization), and the AR environment Mesh exhibit severe distortion and flickering. The remaining objects render normally.

Additional Observation: Interestingly, this issue persists even if I only build the Main Scene from the Apple visionOS XR Plugin sample without including any URP Sample scenes. In this case, alongside the UI and Line Renderer issues, the AR environment Mesh also flickers erratically.

Troubleshooting: I’ve compared the settings under Graphics and Quality with those from another demo project that runs correctly, but found no discrepancies.

Reproduction Steps:

  1. Create a new URP 3D Sample project.

  2. Import the Apple visionOS XR Plugin samples.

  3. Copy visionOS VR setup objects from the Main Scene to the TerminalScene.

  4. Disable objects known to cause errors.

  5. Alternatively, try building only the Main Scene from the Apple visionOS XR Plugin sample.

If needed, I’m willing to upload this project as a reference. Any insights or workarounds would be greatly appreciated!

Thank you!

Hey there! Sorry to hear you’re having trouble.

As always, a repro project is helpful, so please do submit a bug through the bug reporter (Help > Report a Bug...) and include the project. I think I may have seen some of these issues before, but I have actually done a fair bit of testing in that TerminalScene sample, and for the most part got things looking nice. One thing I remember specifically that remains an issue was the Data Driven Lens Flare feature that would go all haywire when you looked at the sun.

I’m not sure I’ve seen this one–the line renderers in the sample generally look fine to me. Although maybe there is a render setting interfering with this? We had some issues with line renderers on PolySpatial/RealityKit in the past, but I haven’t seen anything on the Metal render path.

A video may also help clarify what you’re seeing. You can capture video on the device by going to Control Center and clicking the target-shaped icon for view recording. That may help show us what you’re talking about, but please do submit a project and bug report as well.

For now… off I go fixing the other issue you reported about MSAA :sweat_smile:

did submit a bug report (IN-87901) with a repo. And I just found a workaround: I reseted Graphic and Quality settings, then create a new URP assert to use. Though I cannot figure out which specific setting broke the rendering, but these operations did work.

Great, thanks!

And this is exactly why I always ask for repro projects :smiley:

Armed with a repro, anything is fixable!