On a new blank project with only a single cube added to the scene and going through creating the ARFoundation URP Asset Pipeline etc, I get a black camera feed when running the project
I can see the cube fine, but the background is totally black
Tried with
Samsung S7 (Android8)
Samsung A30 (Android9)
Same result, black background on both phones
The ARF Samples run fine and any non URP project I create. As soon as you switch and enable URP however, this black background
Install AR Foundation (3.1.0 Preview 4) / ARCore XR Plugin (3.1.0 Preview 4)
Build Settings → Switch Platform to Android
Project Settings / Player → Remove Vulkan from Graphics API
Project Settings / Player → Set Minimum API Level to 24
Create a Folder “Rendering”
Add a UniversalRenderPipline Asset
On the URP Asset Renderer → Add a Renderer Features → NewARBackgroundRenderFeature to the Asset
9 Project Settings / Graphics change the Render Pipline to the newly created
Create a new Scene
Delete Main Camera
Add a Cube
Add AR Session
Add AR Session Origin
-----> Build and Run → Black Camera Background
Final Step: Under Quality set the Level to Medium and set the Rendering to None (Render Pipeline Asset)
-----> Camera Works
I don’t say i understand why this is the case but for me it worked
Hi,
Your solution simply disable the SRP for the medium quality settings (and by the way use the legacy renderer). That’s why the camera feed is working that way.
But Unity indicates a solution in the ARfoundation manual to use URP with ARFoundation and fix camera feed.
Hope it helps.