Hi guys, I’m Brigaele and I apologize for my English…
I just joined to jMonkey forum and I don’t know how it work.
As you read in title: i have some problem with the shadows…
there a video link of my problem.
And I want obtain some in the dynamic shadows result like in Phong Light:
I hope that someone can help me … I’m desperate. XD
If you are referring to the artifacting in the self-shadowing, the only way to minimize this is to increase the size of your shadow map or use the post-process versions of the shadow renderers (which should apply some form of convolution or blurring to help minimize the effect) or both.
EDIT: Though, keep in mind that this is noticeable in most games. Skyrim is a great example… awesome graphics… terrible shadows… but the end result is still great.
Hi, thanks for reply. Yes I’m referring to the artifacting… But I have just post-processing version…
Here the code:
[java]
viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.8f, 1f, 1f));
DirectionalLight sun = new DirectionalLight();
Vector3f lightDir = new Vector3f(-0.12f, -0.3729129f, 0.74847335f);
sun.setDirection(lightDir);
sun.setColor(new ColorRGBA(1.0f, 0.9f, 0.8f, 1.0f).multLocal(2.8f));
rootNode.addLight(sun);