fogColor and clearColor not the same despite same values

maybe fog end is set farther away than the far plane? what are your other settings to the fog?

in simpleInitGame():

display.getRenderer().setBackgroundColor(new ColorRGBA(127f / 255f, 127f / 255f, 100f / 255f, 1));



   
private void createFog() {
      FogState fs = display.getRenderer().createFogState();
      fs.setColor(new ColorRGBA(127f / 255f, 127f / 255f, 100f / 255f, 1));
      fs.setEnd(250);
      fs.setStart(75);
      // fs.setDensityFunction(FogState.DF_LINEAR);
      fs.setEnabled(true);

      rootNode.setRenderState(fs);
   }




Does this have to do with lighting? Do I need to create a cube around the camera (skybox) and color it in those colors? hm…I'll try that.

no, lighting does not matter. looks on the pic like you are doing splatting or some blending though, which will cause problems since every layer will pick up the fog.

hehe… nightmares are coming back to me of MrCoder and I fighting terrain splat + fog + lighting + shaders…  wahhhh!!!  XD

hahaha yeah that was a nightmare. but we solved it!!!  8)

MrCoder said:

hahaha yeah that was a nightmare. but we solved it!!!  8)


Care to share?  :|

Maybe MrCoder could ask NC to release those shaders / renderpass  :slight_smile:

i'll check it up