Hello, while creating my first jme3 game I’ve run into couple of problems.
First one: Shadows.
I’m using PSSM renderer initialized like this:
pssmRenderer = new PssmShadowRenderer(assetManager, 1024, 3);
pssmRenderer.setDirection(sun.getDirection().normalizeLocal()); // light direction
And this is the effect:
We can see shadows through objects.
The *.obj model I have loaded looks strange. I have completly no idea how to approach this. Thats how I load it:
[java]Spatial tree3 = assetManager.loadModel(“Models/tree.obj”);
And here are screens presenting how all of this looks like:
(the white-ish tree is an *.obj model)