Author Topic: Hello , About Fog question  (Read 1726 times)

Offline gamenewer

  • long
  • ***
  • Posts: 171
    • View Profile
Hello , About Fog question
« on: September 16, 2014, 12:05:26 pm »
Hello , Egon , I'm back .  I use the code as following , but no effect, I can't see any fog. Could you help me? Thanks a lot.


            RGBColor fadeColor = new RGBColor(192, 135, 46);
            world.setFogging(World.FOGGING_ENABLED);
            world.setFogParameters(600, 1000, fadeColor.getRed(), fadeColor.getGreen(), fadeColor.getBlue());

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Hello , About Fog question
« Reply #1 on: September 16, 2014, 02:54:02 pm »
Should work as long as you scene actually renders stuff that far in the distance... ???

Offline gamenewer

  • long
  • ***
  • Posts: 171
    • View Profile
Re: Hello , About Fog question
« Reply #2 on: September 16, 2014, 04:55:20 pm »
Thanks,  It's my mistake , I render the skybox cause this problem :P