Physically based rendering

Hello,

Do you have an example project or some code to get a “beautiful” rendering with JMonkey, please? For the moment, I tried several effets/shaders: SSAO, DirectionalLight, etc. but I don’t get the results I woud like: artifacts, etc.

Thank you in advance.

PBR is in the work.
What artifacts do you have with SSAO and directional lights?

Hello,

I see this kind of “artifacts”:
Artifacts

Here is my code:

DirectionalLight sun = new DirectionalLight();
        sun.setColor(ColorRGBA.White);
        sun.setDirection(cam.getDirection());
        rootNode.addLight(sun);
        
        DirectionalLightShadowFilter dlsf = new DirectionalLightShadowFilter(assetManager, 512, 1);
        dlsf.setLight(sun);
        dlsf.setEnabled(true); // try true or false
        dlsf.setEdgeFilteringMode(EdgeFilteringMode.PCF4);
        dlsf.setEnabledStabilization(true);
        dlsf.setShadowCompareMode(com.jme3.shadow.CompareMode.Hardware);
        dlsf.setShadowIntensity(0.7f);
        fpp.addFilter(dlsf);
        viewPort.addProcessor(fpp);

I would like to get something like that:
Insomnium Engine. Deferred Rendering. #5. Physically based shading and post processing effects - YouTube : Insomnium engine

or I saw this (it’s made with JMonkey):
Maker's Tale - Tech Demo r05 preview clip - YouTube : Maker’s tale"

I just need the code to start, please :o)