Page MenuHomeFeedback Tracker

Fog banding issue
Feedback, NormalPublic

Description

An issue I ran across making this mission - https://github.com/darkChozo/armaMissions/tree/master/cooperative/fa3_c46_stemma_v1.Altis

~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 - http://imgur.com/a/zWqDB

The mission is using the editor weather system with altitude decay and a forecast of no fog. Parameters are here: https://github.com/darkChozo/armaMissions/blob/master/cooperative/fa3_c46_stemma_v1.Altis/mission.sqm#L306

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce
  1. Load this mission - https://github.com/darkChozo/armaMissions/tree/master/cooperative/fa3_c46_stemma_v1.Altis
  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.

Hi,

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.

Hi,

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.

Appendix:

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.

@ookexoo
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

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

@Alwin
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.

JonBons2020 added a subscriber: JonBons2020.EditedSep 16 2022, 6:35 AM

I've encountered this as well and I have some test values (that work on the CUP Takistan map, unsure how it behaves on other terrains)

0 setFog [0.422057,2.46173e-036,0]; // small strip
0 setFog [0.422057,0.46173e-036,0]; // large strip
0 setFog [0.422057,0.46173,0]; // no strip

as a temporary stopgap I've implemented a watchdog that resets the fog values if a bad value is being returned

if (isServer) then {
    [] spawn {
        waitUntil
        {
            fogParams params ["_fog","_decay","_alt"];
            if (_decay > 0 && {_decay < 1e-4}) then {
                private _msg = format ["Something tried to set fog decay to %1, truncating precision to 0 solve visual issues", _decay];
                systemChat _msg;

                _decay = 0;

                0 setFog [_fog, _decay, _alt];
            };

            sleep 10;
            false
        };
    };
};
Tenshi added a subscriber: Tenshi.Sep 21 2022, 12:05 PM

Hello, thank you for the clear repro.
We will see what we can do, to resolve the issue.

Tenshi set Ref Ticket to Internal Ref.: AIII-41176.Sep 21 2022, 12:06 PM
Tenshi changed the task status from Acknowledged to Confirmed Internally.
BIS_fnc_KK added a subscriber: Alwin.
TRAGER added a subscriber: TRAGER.Sep 24 2022, 3:50 PM
BIS_fnc_KK added a comment.EditedNov 30 2022, 11:05 PM

should be fixed in rev 150110

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 30 2022, 11:06 PM
BIS_fnc_KK changed the task status from Confirmed Internally to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.