AR Foundation broken on URP 10+

It seems that there is some breaking changes on the URP 10.x on the Renderer Features
The problem come from a change in the API of the Forward renderer ( New AR Background Renderer Feature ) any way to fix it ?

Bump, anyone success to setup it correctly ? I Cant get the New AR Background Renderer Feature working with URP 10

There may have been a few related known issues that got fixed in URP 10.2. Can you try again with latest version of AR Foundation and URP 10.2? If you’re still experiencing issues, please file a bug with reproducible project so the team can properly track and investigate. Thanks!

Same issue in Unity 2020.2.1f1 + URP 10.2.2 + ARFoundation 4.0.9

And I came here from Unity 2019 where I could find NO combination of versions of URP and ARFoundation that worked on iOS.

1 Like

For me, the combination of Unity 2020.2.1f1 + Universal RP 10.2.2 + AR Foundation 4.1.0-preview.10 + ARKit XR Plugin 4.1.0-preview.10 works.

In the changelog, in AR Foundation 4.1.0-preview.10 has the following fix:

  • Fix an issue with background rendering with URP 10+ rendering with a Final Blit pass.

See Changelog | AR Foundation | 4.1.13

This fix was removed in AR Foundation 4.1.0-preview.13:

  • Remove fix made in 4.1.0-preview.10 for URP 10+ rendering. URP 10 now has a proper fix for this issue.

I just tried out AR Foundation 4.1.0-preview.12 and that also works, so it probably has to do with this fix.

The error I am getting in Xcode is the following, which I assume is the same problem as mentioned above. Next to that the camera background stays black. Tracking works and all the other reasons the screen could be black have been checked. There are no other errors or warnings.

You can only call cameraDepthTarget inside the scope of a ScriptableRenderPass. Otherwise the pipeline camera target texture might have not been created or might have already been disposed.
UnityEngine.Rendering.Universal.ScriptableRenderer:get_cameraDepthTarget()
UnityEngine.XR.ARFoundation.ARBackgroundRendererFeature:AddRenderPasses(ScriptableRenderer, RenderingData&)
UnityEngine.Rendering.Universal.ScriptableRenderer:AddRenderPasses(RenderingData&)
UnityEngine.Rendering.Universal.ForwardRenderer:Setup(ScriptableRenderContext, RenderingData&)
UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera(ScriptableRenderContext, CameraData, Boolean)
UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack(ScriptableRenderContext, Camera)
UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render(ScriptableRenderContext, Camera[])
UnityEngine.Rendering.RenderPipelineManager:smile:oRenderLoop_Internal(RenderPipelineAsset, IntPtr, List`1)

Hey there, @ArjoNagelhout - looks like this issue is a duplicate of one reported here: Xcode Warning

See response there. :slight_smile: