Page MenuHomeFeedback Tracker

[BUG] Underwater lighting seems to be affected by global lighting even at deep depths
Acknowledged, NormalPublic

Description

https://www.youtube.com/watch?v=KEmGIy_dJGA
Video pretty much explains it, light underneath water is affected by light on surface even at depths where light is not able to penetrate the water (where it's very dark).

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
21H2
Category
Engine
Steps To Reproduce

1.Load Altis (since it has good sea depths)
2.Place "Land_PortableLight_single_F" underneath water

  1. put in the "Land_PortableLight_single_F" init:
_light_emitter_0 = "#lightreflector" createVehicleLocal getpos this;
_light_emitter_0 setLightColor [1,1,1];
_light_emitter_0 setLightAmbient [1,1,1];
_light_emitter_0 setLightIntensity 17000;
_light_emitter_0 setLightUseFlare false;
_light_emitter_0 setLightDayLight true;
_light_emitter_0 setLightAttenuation [15, 4, 5, 0];

_pos1 = this modelToWorldVisual (this selectionPosition "light_1_pos");
_pos2 = this modelToWorldVisual (this selectionPosition "light_1_dir");

_light_emitter_0 lightAttachObject [this, (this selectionPosition "light_1_pos")];
_light_emitter_0 setdir ( _pos1 getdir _pos2);

4-Try changing time (Hours and if you want seconds too) to observe the variation in lighting that changes with the lighting on the surface
The code I used in the video to change time in case you are lazy:

player addAction ["Change time",{

	with uiNamespace do {
		TimeDisplay = (findDisplay 46) createDisplay 'RscDisplayEmpty';  
	
		_ColorFrame = TimeDisplay ctrlCreate ["RscText", 1001];  
		_ColorFrame ctrlSetPosition [0.432011 * safezoneW + safezoneX, 0.445 * safezoneH + safezoneY, 0.128767 * safezoneW, 0.099 * safezoneH];
		_ColorFrame ctrlSetBackgroundColor [0,0,0,0.87];  
		_ColorFrame ctrlEnable false;  
		_ColorFrame ctrlCommit 0;  

		_RscFrame_1800 = TimeDisplay ctrlCreate ["RscFrame", 1800];
		_RscFrame_1800 ctrlSetPosition [0.432011 * safezoneW + safezoneX, 0.445 * safezoneH + safezoneY, 0.128767 * safezoneW, 0.099 * safezoneH];
		_RscFrame_1800 ctrlCommit 0;

		_RscText_1000 = TimeDisplay ctrlCreate ["RscText", 1000];
		_RscText_1000 ctrlSetText "Input hour:";
		_RscText_1000 ctrlSetPosition [0.440252 * safezoneW + safezoneX, 0.456 * safezoneH + safezoneY, 0.0463563 * safezoneW, 0.022 * safezoneH];
		_RscText_1000 ctrlCommit 0;

		TextBox = TimeDisplay ctrlCreate ["RscEdit", 1400];
		TextBox ctrlSetPosition [0.440252 * safezoneW + safezoneX, 0.489 * safezoneH + safezoneY, 0.051507 * safezoneW, 0.044 * safezoneH];
		TextBox ctrlCommit 0;


		_applyButton = TimeDisplay ctrlCreate ["RscButtonMenu", 2400];
		_applyButton ctrlSetText "Apply";
		_applyButton ctrlSetPosition [0.5 * safezoneW + safezoneX, 0.5 * safezoneH + safezoneY, 0.0463563 * safezoneW, 0.033 * safezoneH];
		_applyButton ctrlAddEventHandler ["ButtonClick",{
			_TextBox = uiNamespace getVariable 'TextBox';
			_Hour = parseNumber (ctrlText _TextBox);
			date params ["_year", "_month", "_day", "", ""];
			setDate [_year, _month, _day, _Hour, 0];
		}];
		_applyButton ctrlCommit 0;

	};

}];
Additional Information

Launcher version: 1.5.149102

  • Hardware acceleration disabled

Game version: 2.08.149650

Branch: profiling

Event Timeline

dedmen changed the task status from New to Acknowledged.Jul 7 2022, 4:36 PM
dedmen set Ref Ticket to AIII-55262.