Jump to content


Soft Shadow Halo Artifact


2 replies to this topic

#1 David Gallagher

    New Member

  • Members
  • PipPip
  • 69 posts

Posted 30 September 2012 - 11:57 PM

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...
Posted Image

not a perfect fix but I can live with this over the halo...
Posted Image

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5340 posts
  • LocationSanta Clara, CA

Posted 01 October 2012 - 12:10 AM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 David Gallagher

    New Member

  • Members
  • PipPip
  • 69 posts

Posted 01 October 2012 - 01:52 AM

ah depth again, will look into this Reedbeta thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users