FogState only covers Terrain?


I have applied a FogState to the rootNode:

FogState fs = display.getRenderer().createFogState();
          fs.setColor(new ColorRGBA(0.5f, 0.5f, 0.5f, 0.5f));

But it only effects the terrein and not the sky? How can I realize that the FogState beclouds the whole scene?

Does the rootNode contain the sky as well? It's possible your sky is very close to the terrain so it doesn't get effected by the fog. Either way, it's better if you just tint the sky by a certain amount of the fog color as increasing the size of the sky can cause other issues.

ok thanks.

how can the sky be tinted? with a materialstate ? I am really a bad beginner in graphical things.

Maybe you can help me to learn tinting visual leafs.

i guess you have to apply the tint directly to the skybox images.

But first try to increase the size of the skybox anyway and see how it looks, the problem is you need to find the 'right' size for it.

if its too small it won't be affected by the fog, if its too big it will be either completely covered  by the fog or culled by the camera far frustum.