ndepoel / FSR2Unity

FSR 3.0 Upscaler integration for Unity built-in render pipeline, with support for DX11, Mac, Linux and consoles.
https://forum.unity.com/threads/open-source-fsr-3-0-upscaler-for-unity-birp-dx11-ppv2-multi-platform.1436665/
MIT License
207 stars 28 forks source link

No shadows with quality levels other than Native. #15

Open TokyoWarfare opened 2 weeks ago

TokyoWarfare commented 2 weeks ago

Hello.

After installin the post process version, I get this error:

"Dimensions of color surface does not match dimensions of depth surface UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"

Shadows dissapear in all quality modes other than Native AA.

With the component version of the plugin I other quality modes I also lose the shadows but the image would drastically zoom in.

Unity 2020.3.2.6f1

Still as an AA solution works great!

cheers!

ndepoel commented 2 weeks ago

That error about surface dimensions not matching suggests to me that you probably have multiple stacked cameras in your scene. The error tends to happen when one camera passes its output buffer to the next camera that is set to render at a different resolution, which is a result of the hack that FSR2 uses to allow upscaling to work in BiRP.

Unfortunately camera stacking in BiRP is a bit of a mess and there's no good universal way for FSR2 to "know" which cameras it should apply itself to. It's all very project-specific and circumstantial. This problem was discussed a while ago on the Unity forums and a workaround was suggested that involves slightly changing the viewport rects of one of the cameras. You could have a look at that and see if that's a viable solution for you: https://forum.unity.com/threads/open-source-fsr-3-0-upscaler-for-unity-birp-dx11-ppv2-multi-platform.1436665/#post-9416075

TokyoWarfare commented 2 weeks ago

ah, yes, I've stacked cameras : D

I'll check the forum link and see if I can hack the behaviour. I render most in main cam but to handle bkg I've a second cam to avoid camera clipping limitaitons of the main cam. Cheers! Thanks for this plugin, works great as AA for point clouds.