Overlay cameras + MSAA = black screen in a Unity build

I’ve seen this bug reported a few times over the years and at one time it seemed it was fixed, but clearly has regressed. Currently using the latest version of Unity 6, URP, and although in the editor play mode having overlay cameras active while MSAA is enabled works as expected, in a build it always results in a black screen. Black screen in build persists unless I either turn off MSAA or disable my overlay cameras entirely.

4 Likes

I have the same problem. The error message I receive in the log is:

EndRenderPass: Not inside a Renderpass
DrawOpaqueObjects/DrawTransparentObjects: Missing resolve surface for attachment 0. Are you tring to resolve a bindMS rendertarget?

To reproduce the error just add a overlay camera to a empty scene and enable MSAA in URP Asset.

1 Like

I have found some solution. I encountered the same issue but when I changed the Project Settings -> Player -> Other Settings -> Rendering -> MSAA Fallback to Upgrade the black screen vanished away, idk how it works because when I changed it back to Downgrade it still works.

in my case its not happening… still blank screen, as soon as i remove overlay camera, every thing is visible though…

I have the same problem in a project build for WebGL. Combination of MSAA (2,4,8) at Base Camera and Camera Overlay for the UI (Canvas). There is only a black screen at Base Camera. The UI content at the Overlay Camera is visible. When I disable MSAA or the Overlay, the problem disappears. No problem in the Unity editor.

In the browser console is endless loop of errors:
webgl.framework.js.br:9 RenderPass: Missing resolve surface for attachment 0. Are you tring to resolve a bindMS rendertarget?
webgl.framework.js.br:9 EndRenderPass: Not inside a Renderpass

1 Like

I have exactly the same on 6000.0.24.
Just checked it on the URP Package Samples>Camera Stacking>MixedFOV scene.

Switching to compability mode can also get this scene to work.

I have the same bug in 6000.0.32

Hey! Same on 6000.0.34f1, nothing from forums helps, PLS if you will fix this, text me,

btw i can text you if I`ll find a solution.

Just encountered this issue in Unity 6000.0.35f1. As described. With MSAA on and overlay cameras screen is blank when game starts in build (works fine in editor).
This is a annoying because I updated from an earlier 6000 version because turning the MSAA on stopped the sun flare SRP from showing in the game.
Seems like there’s some ongoing problems here…

EDIT: This issue was resolved in 6000.1.0b3

1 Like