Page 1 of 1

[Fallout 4] ENB Simple Night Vision Adjust

Posted: 15 Jan 2022, 11:58
by Default0cry
Hello guys

This ENB(enbeffect.fx) Simple Night Vision Adjust slightly tweaks Weapons Night Vision, "Night Person" perk, VATS and Pause Menu at same time.

The Night Vision effect in Vanilla is very weak but can "annoy" some people.
The last quest in Institute with the "Night Person" perk and with stealth power armor is the worst case scenario, even in Vanilla.

In ENB presets with over or under brightness/contrast changes a fine adjustment of Night Vision properties becomes essential for good gameplay.

Here a example:
https://www.youtube.com/watch?v=6UXyBMCDAUs

Regarding the code, a simple change in a float 3 value to avoid any scenario incompatibility(ever ≥0) taking into account that the effect can be used by other relevant functions in the code.

enbeffect.fx:

Between original Lines 165 and 166

Code: Select all

bool	NVEnable
<
	string UIName="CC: Activate NV lens settings";
> = {true};

float	NVLensLevelExterior
<
	string UIName="CC: NV lens exterior level";
	string UIWidget="Spinner";
	float UIMin=0.0;
	float UIMax=20.0;
> = {1.0};

float	NVLensOffsetNight
<
	string UIName="CC: NV lens exterior night offset";
	string UIWidget="Spinner";
	float UIMin=0.0;
	float UIMax=20.0;
> = {0.0};

float	NVLensLevelInterior
<
	string UIName="CC: NV lens interior level";
	string UIWidget="Spinner";
	float UIMin=0.0;
	float UIMax=20.0;
> = {1.0};

float3	NVLensColor
<
	string UIName = "CC: NV lens color filter";
	string UIWidget = "color";
> = {0.2125, 0.7154, 0.0721};
Between original Lines 289 and 290

Code: Select all

float3 NVlens;
	NVlens = float3(0.2125, 0.7154, 0.0721);

	if (NVEnable)
	{
	 NVlens = NVLensColor*((NVLensLevelInterior*EInteriorFactor)+((NVLensLevelExterior+(NVLensOffsetNight*(1-ENightDayFactor)))*(1-EInteriorFactor)));
	}

Alteration in original Line 317

Code: Select all

r0.x = dot(r1.xyz, NVlens);

Thanks Boris for ENB and the rich documentation.

Re: [Fallout 4] ENB Simple Night Vision Adjust

Posted: 15 Jan 2022, 12:00
by ENBSeries
Code tag don't work on this forum after update, so better do formatting as other text type.

Re: [Fallout 4] ENB Simple Night Vision Adjust

Posted: 15 Jan 2022, 12:27
by Default0cry
Here the enbeffect.fx with changes:
enbeffect.fx
(13.93 KiB) Downloaded 1875 times

Between original Lines 165 and 166
bool NVEnable
<
string UIName="CC: Activate NV lens settings";
> = {true};

float NVLensLevelExterior
<
string UIName="CC: NV lens exterior level";
string UIWidget="Spinner";
float UIMin=0.0;
float UIMax=20.0;
> = {1.0};

float NVLensOffsetNight
<
string UIName="CC: NV lens exterior night offset";
string UIWidget="Spinner";
float UIMin=0.0;
float UIMax=20.0;
> = {0.0};

float NVLensLevelInterior
<
string UIName="CC: NV lens interior level";
string UIWidget="Spinner";
float UIMin=0.0;
float UIMax=20.0;
> = {1.0};

float3 NVLensColor
<
string UIName = "CC: NV lens color filter";
string UIWidget = "color";
> = {0.2125, 0.7154, 0.0721};



Between original Lines 289 and 290

float3 NVlens;
NVlens = float3(0.2125, 0.7154, 0.0721);

if (NVEnable)
{
NVlens = NVLensColor*((NVLensLevelInterior*EInteriorFactor)+((NVLensLevelExterior+(NVLensOffsetNight*(1-ENightDayFactor)))*(1-EInteriorFactor)));
}


Alteration in original Line 317
r0.x = dot(r1.xyz, NVlens);

Re: [Fallout 4] ENB Simple Night Vision Adjust

Posted: 13 Nov 2022, 10:45
by ryanrobby
I'm using PRC (https://www.nexusmods.com/fallout4/mods/6796) and trying to fix Night Vision.
I checked out your video and it looks good, but I have no idea where to insert your code into my enbeffect.fx
The file I'm currently using came with the mod install so I have no clue about how it works exactly.

If you don't mind and can spare the time could you take a look where to insert your code into my file?

Here's a link to my file: enbeffect