Jump to content
  • 0
Core

What is causing "shadow banding"

Question

Hi!

I have noticed this here and there every once in a while, but now that I'm finally building a map with aesthetics in mind, I think it is time to dig deeper into this. So what is causing this banding with shadows, and how I'm able to prevent it from happening? I understand that it must be some kind of limitation with the engine, but just knowing how to avoid it would be awesome! Thanks again for any tips.

20180123205638_1.jpg

Edit. Oh, numerous times I've been asked to send a map for an example. I would, but noobish question... How? What files I should include? Is there an easy way "create" a file that includes everything you need to run a map on another computer? Thanks again.

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

Jesus, I got it! First of all, it only happens with spotlights and if you have more than one on the same area. Point lights cause no banding/stripes. With spotlights, you can greatly reduce or even get rid of it by randomly rotating them around Y-axis to make sure they are not "lined up" with each other.

 First image shows situation where banding occurs:

image.thumb.png.9740eb2cd9921195687be64825f88c92.png

And here all four spots are rotated randomly around Y axis, and banding is gone:

image.thumb.png.9ff2c65cbc06949ac3edc400102b5979.png

  • Like 1

Share this post


Link to post
  • 0

This is a side effect of the real time lighting system. All modern engines have this issue and ways they try to mute it; most commonly baking the lighting.

A while back, Josh was experimenting on filtering out but this resulted in everything looking grainy. The code is still in the shaders commented out if you want to experiment with it.

  • Thanks 1

Share this post


Link to post
  • 0

If you set the lighting quality to a higher value it minimizes this effect. You can also mess around with the near and far range in the light settings.

  • Thanks 1

Share this post


Link to post
  • 0

Ok, good to know! Since Leadwerks is actually THE only modern engine I have ever used, there is so much basic stuff I need to learn... But nice to know there are ways to overcome this.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...