Page 1 of 1
[Q] GTA V time detection.
Posted: 03 Apr 2020, 11:16
by markimoo0714
Does gta 5 latest enb can detect in game time?
I have a settings for enbeffect.fx that looks good at daytime but too dark at night time.
Is it possible to set different values depending on time?
Re: [Q] GTA V time detection.
Posted: 03 Apr 2020, 11:49
by ENBSeries
Code: Select all
//x = dawn, y = sunrise, z = day, w = sunset. Interpolators range from 0..1
float4 TimeOfDay1;
//x = dusk, y = night. Interpolators range from 0..1
float4 TimeOfDay2;
global variables are in enbeffect.fx for this purpose.
Re: [Q] GTA V time detection.
Posted: 23 Apr 2020, 12:59
by markimoo0714
ENBSeries wrote:Code: Select all
//x = dawn, y = sunrise, z = day, w = sunset. Interpolators range from 0..1
float4 TimeOfDay1;
//x = dusk, y = night. Interpolators range from 0..1
float4 TimeOfDay2;
global variables are in enbeffect.fx for this purpose.
How to read the [TIMEOFDAY] value in the enbseries.ini?
Re: [Q] GTA V time detection.
Posted: 23 Apr 2020, 13:39
by ENBSeries
Those parameters are not available, because already converted according to the time at current moment. If you want to use time of the day system in shaders, then use those TimeOfDay1 and TimeOfDay2 parameters as weight factors. For example:
Code: Select all
float IntensitySunrise=1.0;
float IntensityDay=2.0;
float IntensitySunset=1.0;
float IntensityNight=0.1;
float outputintensity =
(TimeOfDay1.y*IntensitySunrise)
+ (TimeOfDay1.z*IntensityDay)
+ (TimeOfDay1.w*IntensitySunset)
+ (TimeOfDay2.y*IntensityNight);
This example do not include dusk and dawn times, they should be added in similar way to not have empty gaps of zero output.
Re: [Q] GTA V time detection.
Posted: 24 Apr 2020, 22:45
by markimoo0714
That help find solution to my problem.
Also which locations does enb consider interior?
I managed to set different luts on day and night factor but EInteriorFactor doesn't work when I enter safehouse something like that.
Re: [Q] GTA V time detection.
Posted: 25 Apr 2020, 10:15
by ENBSeries
Game almost do not have interiors, everything is part of global world map, so just ignore it. I don't even remember now where i found real interior.
Re: [Q] GTA V time detection.
Posted: 26 Apr 2020, 01:46
by markimoo0714
Fortunately I found this plugin by Quant and it solves the problem.
https://www.gtainside.com/en/gta5/mods/ ... enbfeeder/