Soft Shadow Halo Artifact

5000fdaaeeeb9f038be93cf67eb3b130
0
David_Gallagher 102 Sep 30, 2012 at 23:57

Hi I’ve just started working on shadows for my dx11 engine and have found that soft shadows (blur done full screen pass) causes a halo, the same thing happened in dx9 and was hopeing there was a way to get around it.

I spent all morning trying everything I could think of but in the end the only thing i could figure out to get around it was to deflate the mesh when rendering the shadow before the blur pass. it did minimize the halo effect to almost non existant, but was wondering if there are any better ways i might not have thought of. I don’t really want to use VSM just yet as i think that has it’s own can of worms as far as issues go. and only want soft shadows at this stage.

below are a few pics showing the artifact and the current fix…

Thanks for any ideas.

Halo Artifact…
[img]https://dl.dropbox.com/u/20866095/OE2/ss_artifact_halo.JPG[/img]

not a perfect fix but I can live with this over the halo…

[img]https://dl.dropbox.com/u/20866095/OE2/ss_artifact_no_halo.JPG[/img]

2 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Oct 01, 2012 at 00:10

Like motion blur, this is another case where you probably want to detect depth discontinuities and avoid having your blur sample from pixels with too different of a depth. This is always going to be a problem when doing any kind of blur or filter in screen space. This is known as a “cross bilateral filter” or “joint bilateral filter” (same thing, AFAICT) in the literature; if you google those terms you should get some hits.

5000fdaaeeeb9f038be93cf67eb3b130
0
David_Gallagher 102 Oct 01, 2012 at 01:52

ah depth again, will look into this Reedbeta thanks!