Shadow problems: flickering & disappearing unexpectedly

Hey guys,

I’m trying to troubleshoot odd shadow behavior in 3089. I made a video showing what is happening:

[video]http://www.youtube.com/watch?v=FZft2aufRsc[/video]

The first shadow slides away. @ 13 seconds, you see some flickering in the upper-right hand corner. Other problems start around 25 seconds…

Shadow initialization code:

[java] shadowRenderer = new DirectionalLightShadowRenderer(Main.GApp.getAssetManager(), 2048, 3);
shadowRenderer.setLight(dl);
shadowRenderer.setEdgeFilteringMode(EdgeFilteringMode.Dither);
shadowRenderer.setShadowZFadeLength(400f);
shadowRenderer.setShadowZExtend(400f);[/java]

Any ideas? :expressionless:

Thank you!

I may have fixed my own problem, one that I caused myself. I found a bug in some code I modified in Matrix3f that was to blame!

1 Like