Issue with fog

Hi!

First I’m a newbie so maybe I miss line or something but here is my problem:

I am working on a modification of Roaming Ralph. I changed the model, add some house, etc… Everything is working fine. I add fog like in the manual but the issue is that the fog is “flashing”. What I mean is that when I move Ralph, the fog change his “consistence” to be more opaque or more transparent.

Here is the code I use to create the fog. What is the problem do you think?

self.fog = Fog('distanceFog')
self.fog.setColor(0.1, 0.1, 0.1)
self.fog.setExpDensity(.08)
render.setFog(self.fog) 

Thanks!

Is there anyone here?

That’s the correct way to set fog, and in fact it works fine for me. Perhaps it’s an issue with your graphics card or the driver you have installed?

David