Hi all.  I cannot get linear fog working, although I have exponential working:
 
this doen't work:
 
   LinearFog fog = new LinearFog(new Color3f(0.2f, 0.2f, 0.2f))
      fog.setBackDistance(200000);
      fog.setFrontDistance(0.1);
      fog.setInfluencingBounds(bounds);   
      group.addChild(fog);
     
I have tried all sorts of combinations for front and back.
      
    This does work:

      ExponentialFog fog = new ExponentialFog(new Color3f(0.07f, 0.55f, .40f));
      fog.setDensity(25);
      fog.setInfluencingBounds(bounds);   
      group.addChild(fog);
 
Thanks,
 
Dave Yazel
       

Reply via email to