Well, i’m not shure if this is a bug of my hardware or a bug of PointLightShadows, but perhaps someone can give some advice…
Here you see a scene with show-normals-material. In the center is a PointLight (yes, i know, its not exactly centered to the fireball…) that is created like this:
ColorRGBA light = ColorRGBA.Yellow;
PointLight pl = new PointLight();
PointLightShadowRenderer plsr = new PointLightShadowRenderer(assetManager, 512);
plsf = new PointLightShadowFilter(assetManager, 512);
FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
These walls are kind of quad-like meshes, the wood-pillar in the front (see pic below) is a jme3-box. What you can see is some kind of jitter that changes appearence when i move or change looking direction. Sometimes its not there at all but it is allways exactly where the ShadowRenderes frustum of the camera looking into world Z+ reaches the wall with normals to Z-. Another jittering occures where the renderers camera-frustum of World X+ comes to a wall with normals at X- (see first pic). THe effect is independent from the used material and i see it with shownormals-matdef and with lighting-matdef with and without additional normalmap.
The Material is created like this…
MaterialDef matdef = (MaterialDef) Manager.am.loadAsset(“Common/MatDefs/Light/Lighting.j3md”);
Material mat = new Material(matdef);
mat.setTexture(“DiffuseMap”, (Texture2D) texture); // <- the image already loaded
if (normal != null) //<- an optional normal texture
mat.setTexture(“NormalMap”, (Texture2D) normal);
if (isTransparent()) // <- this is also flagged at loading of the texture
Again with different material and at different world location, this shoot really took me a while to get captured because the flickering vanishes as soon as you just move the camera the tiniest bit. But here it is: this wall has normals at World X+, so we look into X- with a bit Z-. The cell to the right is correctly rendered, the cell in the walls middle is half in PointShadowRenderers X+ camera, where those strange jitter occures, obviously just in the lower right triangle. As those whole scenery is created dynamically from cubic cells, where each wall uses exaclty the same building-routine and all triangles are just the same setup (i confirmed this with my test-texture), i cant see any logical reason, why the right cell is not jittered at all while the middle one jitters at some special angles. You see that the part of the jittering triangle that is rendered with PointLightShadowRenderer’s Z–Camera is rendered correctly.
Now, any suggestions, please…?