[Q] GTA V time detection.

Post Reply
  • Author
  • Message
Offline
Posts: 21
Joined: 04 Oct 2018, 09:06

[Q] GTA V time detection.

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?

Offline
User avatar
*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;
global variables are in enbeffect.fx for this purpose.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
Posts: 21
Joined: 04 Oct 2018, 09:06

Re: [Q] GTA V time detection.

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?

Offline
User avatar
*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:

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.
_________________
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.

Offline
User avatar
*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

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/
Post Reply