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?
[Q] GTA V time detection.
- Author
- Message
-
Offline
- *blah-blah-blah maniac*
- Posts: 17566
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: [Q] GTA V time detection.
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;
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 21
- Joined: 04 Oct 2018, 09:06
Re: [Q] GTA V time detection.
How to read the [TIMEOFDAY] value in the enbseries.ini?ENBSeries wrote:global variables are in enbeffect.fx for this purpose.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;
-
Offline
- *blah-blah-blah maniac*
- Posts: 17566
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: [Q] GTA V time detection.
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:
This example do not include dusk and dawn times, they should be added in similar way to not have empty gaps of zero output.
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);
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 21
- Joined: 04 Oct 2018, 09:06
Re: [Q] GTA V time detection.
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.
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.
-
Offline
- *blah-blah-blah maniac*
- Posts: 17566
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: [Q] GTA V time detection.
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.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 21
- Joined: 04 Oct 2018, 09:06
Re: [Q] GTA V time detection.
Fortunately I found this plugin by Quant and it solves the problem.
https://www.gtainside.com/en/gta5/mods/ ... enbfeeder/
https://www.gtainside.com/en/gta5/mods/ ... enbfeeder/