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
pssmRenderer.setFilterMode(FilterMode.PCF8);
pssmRenderer.setCompareMode(CompareMode.Software);
viewPort.addProcessor(pssmRenderer);


http://up353.siz.co.il/up3/zhzdynhdznlj.png

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?

jME3_2012-04-30



http://www.jmonkeyengine.com/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