Hi there!
I'm trying to use the DirectionalShadowMapPass for shadowing my scene. But actually no shadows appear… :?
I am using a modified BaseSimpleGame which I combined with JME Physics 2 to use that as well. In my initSystem() I wrote this:
pManager = new BasicPassManager();
RenderPass rPass = new RenderPass();
pManager.add(rPass);
shadowPass = new DirectionalShadowMapPass(new Vector3f(0, -100, 200));
shadowPass.setViewTarget(new Vector3f(0, 100, 0));
shadowPass.setShadowAlpha(0.5f);
shadowPass.addOccluder(rootNode);
shadowPass.add(rootNode);
pManager.add(shadowPass);
BTW: I don't get any RenderPass to work at all... Some of them doesn't seem to be supported on my machine. I tried out the BloomRenderPass f.e. by running the test-class and it said "nope".