URP camera stacking results in blurry image from overlay camera

Hello, I am trying to stack two cameras, one main and one for UI but as soon as I set the second camera to “Overlay” the image quality becomes blurry. This is especially noticeable with text.

Here are the two camera setups:
Main camera:

And UI camera:

And the images rendering the text with the main camera, and with the UI camera respectively:

6136653--669420--upload_2020-7-27_23-30-20.png 6136653--669423--upload_2020-7-27_23-30-41.png

I don’t think it’s related to the textmeshpro text being too small/low quality because is happening for other sprites too - also with 3D models it’s less noticeable but I think the effect is still there.

I have had a look on the forums but haven’t found anything too specific about this.

Can anyone share some insight into why this is happening and how (if possible) to get really clear/crisp text?

Many thanks!

Peter

Did you change the render scale setting in the pipleline configuration accidentally?

Hey thanks for the reply, I don’t think so? Here’s what I have.

Interestingly setting render scale to 2 makes it more sharp however using the same forward renderer with a non-overlay camera and render scale 1 is fine. Could I just up the scale on only the UI camera? Seems like a hack solution though

I turned off anti-aliasing on the main camera and the quality is much better.

Weird ok so, FXAA on the main cam makes overlay cameras look terrible unless I turn renderscale up to 2, SMAA on main cam looks great with render scale 1.

So for some reason the AA on the overlay is behaving differently to the AA on base cameras - does anyone know where I could find some resources about the order in which AA is applied to stacked cameras/detail on how stacked camera rendering works?

I’m guessing it’s best to just look at the code lol…

I was hoping that the AA would just apply to the final render nicely - maybe postprocess AA is the best bet?

Cheers

1 Like

What FXAA does is actually to blur everything so it won’t look aliased, FX stands for Fast Approximated, it’s an very cheap approach but delivers not so good result