I have actually had this issue twice now, so I will explain both.
The first was when I was using the DirectionalShadow Filtering from the tutorial and the direction I faced would influence the changing of my walls. I figured this was due to it being “directional” and I assumed it was based on the location of my cam.
[java] DirectionalLight sun = new DirectionalLight();
/* Drop shadows */ final int SHADOWMAP_SIZE=1024; DirectionalLightShadowRenderer dlsr = new DirectionalLightShadowRenderer(assetManager, SHADOWMAP_SIZE, 3); dlsr.setLight(sun); viewPort.addProcessor(dlsr); DirectionalLightShadowFilter dlsf = new DirectionalLightShadowFilter(assetManager, SHADOWMAP_SIZE, 3); dlsf.setLight(sun); dlsf.setEnabled(true); FilterPostProcessor fpp = new FilterPostProcessor(assetManager); fpp.addFilter(dlsf); viewPort.addProcessor(fpp);[/java]
So now I’m trying out SSAO
[java]FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
SSAOFilter ssaoFilter = new SSAOFilter(12.94f, 43.92f, 0.33f, 0.61f);
and it is also flicking. I can take a video or w/e but I want to know why this is happening. I originally had my entire scene built out, but now it’s just my walls(which is the only lighting material), and it’s still happening. I figured I had some piece of code that could be effecting it, but now I’m not too sure.
I looked up and found this thread http://hub.jmonkeyengine.org/forum/topic/ssaofilter-flickering-problem/ which talks about the sample having issues, which I did not find…
I tried editing all of the options but nothing worked really…
Anyone have a clue?