PSSM Shadows is ugly

i already tried all i think XD

but when my model is rotated i get this ugly triangles over my rotating model.

here is my pssm

PssmShadowRenderer pssmRenderer = new PssmShadowRenderer(assetManager, 512, 5);
pssmRenderer.setDirection(new Vector3f(1,-15,5).normalizeLocal()); // light direction

any ideas ?

make lightdirection sligthly offset from 0,100,0 or similar

More a quick hack than a real fix tho.

i tried but it won’t help.

What jme version do you use? beta, stable, nightly?


why you asking ?

i was hoping you were using beta, and that the current nightly would fix this :stuck_out_tongue:

But it seems it doesn’t.

I guess the problem is that the light direction is almost parallel to your object…

I’ll see if i can reproduce the issue.

Well so i will wait until the next nightly build of yours :slight_smile:

hoping this will fix the issue XD

Thanks nehon