About Store Forum Documentation Contact



Post Reply 
Shadows flickering and other artefacts when moving sun
Author Message
Brad_Mclain Offline
Member

Post: #1
Shadows flickering and other artefacts when moving sun
I have been implementing the day night cycle code and it works fine however it seems to mess up shadows even with shdReduceFlicker and shdSoft turned on.

Artefacts appear mainly on staircases or other jagged objects, with streaking lines or dots running across them.

If I turn the shdReduceFlicker off, then the shadows work really nicely except for when the sun get directly overhead then there are major flickering problems.

Is there any way to prevent these problems or is it just a known problem when moving the main directional light (Sun)?
(This post was last modified: 05-10-2011 11:08 AM by Brad_Mclain.)
05-10-2011 05:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Shadows flickering and other artefacts when moving sun
I don't think there is any way to solve this

Shdreduceflicker works only for static light but movable camera
05-10-2011 11:43 AM
Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #3
RE: Shadows flickering and other artefacts when moving sun
Try to change that options:
Quote:D.shdMapNum(6);
D.shdMapSize(2048);
D.shdSoft(2);
D.shdJitter(true);
D.shdReduceFlicker(false);
D.shdFrac(1);
D.shdFade(1);
D.shdMapSizeLocal(0.8);
D.cldMapSize(100);
05-10-2011 01:04 PM
Find all posts by this user Quote this message in a reply
Brad_Mclain Offline
Member

Post: #4
RE: Shadows flickering and other artefacts when moving sun
D.shdMapNum(6); //this is the default
D.shdMapSize(2048); //improves quality does not remove artefacts
D.shdSoft(2); //was already set to this
D.shdJitter(true); //didn't appear to do much different
D.shdReduceFlicker(false); //having this to false causes really bad flickering when sun is directly overhead
D.shdFrac(1); //this is the default
D.shdFade(1); //didn't appear to do much different from default
D.shdMapSizeLocal(0.8); //not using any local lights yet
D.cldMapSize(100); //makes no visible difference
05-10-2011 02:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Brad_Mclain Offline
Member

Post: #5
RE: Shadows flickering and other artefacts when moving sun
@Esenthel: Sorry to bump this topic but I was wondering if you could look into potentially some fixes to these problems as it is one of my major concerns with the engine at the moment.
05-21-2011 03:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Shadows flickering and other artefacts when moving sun
no, I don't know any way to solve this, not sure it's possible
05-22-2011 07:05 PM
Find all posts by this user Quote this message in a reply
Post Reply