Page MenuHomeFeedback Tracker

Fog banding issue
Acknowledged, NormalPublic


An issue I ran across making this mission -

~3.5 minutes into the mission, the fog starts doing weird stuff. It looks like a banding effect, basically layers of high contrast fog of different colors, and in some cases no fog at all.

Imgur album of the issue -

The mission is using the editor weather system with altitude decay and a forecast of no fog. Parameters are here:


Operating System
Windows 7
Steps To Reproduce
  1. Load this mission -
  2. Wait ~3.5 minutes from a good vantage point.

Event Timeline

darkChozo created this task.Feb 8 2017, 9:46 PM
Alwin claimed this task.Feb 10 2017, 10:54 AM
Alwin changed the task status from New to Reviewed.


I´ve tested your mission on 1.66. Fog seems to be correct to me.

I recommend you to:

Update your GPU drivers
Try different video quality setting
Do you set fog through some script?
Happens it in some other mission?
Try check your scripts again

It´s possible that some your script reset certain visual setting.

darkChozo added a comment.EditedFeb 10 2017, 6:29 PM

After some further testing, it appears that the fog banding happens at very low fog delay values; on the order of 10^-8 or so. This can be tested with setFog - try "0 setFog [.4,3e-8,0];", "0 setFog [.4,8e-8,0];", "0 setFog [.4,5e-8,0];", etc.

The mission transitions thorough these values for some reason, it seems to do so consistently on our servers but I haven't been able to nail down a root cause and had trouble reproducing on my machine. Might be a mod/script. Regardless, it appears that the banding is the game having trouble rendering those particular params, not something wrong with the params themselves.

This is unlikely to be a hardware problem as many people reported it when the mission was played in multiplayer.

EDIT: I also flipped through some video settings, doesn't appear to affect things at all.

Alwin changed the task status from Reviewed to Acknowledged.Feb 13 2017, 8:57 AM
This comment was removed by Alwin.


Unfortunately, I was not able to reproduce this graphic fog mystery. I´ve tried various fog values and I seemed all correct. Maybe it´s worth to try various GPU and graphic quality settings because ir seems as hardware problem with shaders or rendering.

I tried to reproduce the issue by executing

0 setFog [0.8,0,0];

with the debug console.

I could not observe the issue in SP at all. However, as a client on a dedicated server, I also observed the fog banding issue (using "SERVER EXEC").
As mentioned by others before, in the case the fog decay value is non-zero, all worked fine, even in MP.


i confirm this issue. its most annoying and i dont use fog anymore.

Alwin added a comment.Feb 20 2017, 9:32 AM

Hi, reproduced. Proceeding to investigation.

Can you send me fog setting screen in vanilla Weather parameter, please? Not in Advanced Weather Change module. I was capable to repro its behavior but in different weather settings.

Thank you.

ookexoo added a comment.EditedFeb 20 2017, 11:06 PM

I wouldn't say that the issue makes fog completely useless. You just have to avoid the critical region atm.

Here are the screenshots for my vanilla tests (Eden editor and as client on a dedicated server):

Edit: As Tacplays video was not recoreded in a reliable environment, I made one myself. I also printed fogParams in system chat (Youtube Link).

If there was a documentation which values not to use I wouldnt mind the issue.

Strange thing is: problem wasnt there from first day but introduced last summer IIRC.