Extended Time And Weather based Tonemap with lumscale change and MCM support
This mod took inspiration on Dynamic Time-Based Tonemap (Moddb.com) but was completely rewritten from scratch. The features:
- MCM integration with tons of stuff to tweak. Don't worry, default values were picked up for best subjective possible look of the game. However you can play with them or completely disable mod with click on a checkbox
- Gradually changes values every game minute for smooth transitions
- Changes lumscale_amb and lumscale_hemi values so at dark or underground the ambience would be pitch black dark and at day it would be bright to simulate bouncing light from sun
- Increased change of lumscale_hemi at evening to compensate for excessive darkness of ground there
- Adapts to bad weather so storm or rain wouldn't be excessively dark also
HOW IT WORKS:
Tonemapping is split in 5 different time periods which changes values by certain formulas. At periods parameters will change according to its rate, which basically tells that each hour a parameter will increase or decrease by its rate defined in MCM. When minimal or maximum is reached, parameter stops changing and stays at its value. The changing follows:
- Preambula:
- The adaptation value is constant throughout whole game time.
- Min Lowlum is dependant on weather and set in MCM
- Lumscale Amb and Hemi values after calculation is modified by weather modifiers set in MCM and then clamps to min and max values
- Amount value receives addition of rain or storm amount addition after its calculation
- At 0:00 - 3:00 and in Underground levels all the time
- Amount = Max Amount
- Lowlum = Max Lowlum
- MiddleGray = Min MiddleGray
- Lumscale Amb = Min Lumscale Amb
- Lumscale Hemi = Min Lumscale Hemi
- At 3:00 - 9:00
- Amount decreases from Max Amount to Min Amount
- Lowlum decreases from Max Lowlum to Min Lowlum
- MiddleGray increases from Min MiddleGray to Max MiddleGray
- Lumscale Amb increases from Min Lumscale Amb to Max Lumscale Amb
- Lumscale Hemi = Min Lumscale Hemi
- At 9:00 - 15:00
- Amount = Min Amount
- Lowlum = Min Lowlum
- MiddleGray = Max MiddleGray
- Lumscale Amb continues to increase to Max Lumscale Amb with additional rate applied to it
- Lumscale Hemi = Min Lumscale Hemi
- At 15:00 - 19:30
- Amount increases from Min Amount to Max Amount
- Lowlum increases from Min Lowlum to Max Lowlum
- MiddleGray decreases from Max MiddleGray to Min MiddleGray
- Lumscale Amb decreases from Max Lumscale Amb to Min Lumscale Amb
- Lumscale Hemi increases from Min Lumscale Hemi to Max Lumscale Hemi
- At 19:30 - 0:00
- Amount continues to increase to Max Amount
- Lowlum continues to increase to Max Lowlum
- MiddleGray continues to decrease to Min MiddleGray
- Lumscale Amb continues to decrease to Min Lumscale Amb with additional rate applied to it
- Lumscale Hemi continues to increase to Max Lumscale Hemi with additional rate applied to it
SETTING TIPS:
- If you find underground or night very dark, increase minimal ambient
- If you find noons very bright, decrease maximum ambient or minimal and maximum hemi
- If you find tonemapping too agressive for rain and storm weather, increase min Lowlum for those weathers
- Other weather mods like Aggressor and shader mods Enhanced Shaders may influence the image and give different results. The base mod settings were made for vanilla weathers and shaders. Usually for Enhanced shaders you have to lower Hemi values, setting minimum to 0.8 and maximum to 1 will be a good start. Ambient values might be okay, but may also require tweaking. Tweak them further until you are satisfied with the result
Here are some screens, autumn dark texture pack in combination of simple autumn retexture was used (Moddb.com) (Moddb.com)
If you like my work and wanna support further creations, i will be very glad and appreciate your donation ;)
Streamlabs
CHANGELOG:
UPDATE 7:
- New default values tailored towards Michiko Weather Revamp Revised (Moddb.com). In MCM click to apply defaults in tonemap menu to get new defaults
- Ambient values for daylight were increased to have less dark interiors
- The hemi values were reduced and difference between day and evening is reduced as well, so evening ground isnt as bright
- The values overall are closer to ~1, it should work better with Enhanced Shaders mod
UPDATE 6:
- More accurate readout of current weather, makes adjusting values a bit more correct
- Adjusted default values, generally in less bright direction to be more universal across different weather mods. The nights are a bit more brighter to accomodate light reflection from moon, but still pretty dark, going without flashlight is very dangerous
- Changed preview pics
UPDATE 5:
- Technical update, slight refactoring and moving to own time events
- Modifiers of Amb and Hemi values on not clear weathers can go beyond minimum and maximum values, i think its more straightforward to tune and it works better on non-clear weathers
- Slightly adjusted default params, nights are a bit less pitch black, but they still are dark, and daylight is a bit less bright
UPDATE 4:
- Ambient and Hemi reduction coefficients in bad weather became general modifiers and can go beyond 1, so you can increase those values if, for example, some weather mod makes them too low
UPDATE 3:
- Refactoring: moving from actor_on_update to timed events
- Added hemi reduction on bad weather similar to ambient reduction, and also configurable in mcm as ambient one
UPDATE 2:
- Proper update of values after sleeping to accomodate changing time
- Fixed crash when saving underground, reloading and then sleeping would result in CTD, thanks Coverdrave for reporting, appreciate it man :)
UPDATE 1:
- Added Ambient Reduction on not clear, rain and storm weathers. With this resulting lumscale_amb will be lower for those weathers
- Introduced EMA smoothing of values to mitigate sudden changes in brightness on transitions from one weather to another due to the fact that while programatically those transitions happens instantly, graphicly they slowly blend between each other.
- Partly Clear weather is now considered as "clear" weather and uses its values, so it wouldn't be abnormaly brighter than true clear weather
- Slight adjustment of default values
Very well thank you
What mod is the German Shepard from?
Dynamic Mutants i think.
A great addition to my mod list.
Thanks.
is that dogmeat? lol
looks like dogmeat ,but its from dynamic mutants addon actually ,made by 3vtiger
Any impacts on performance?
I would like to try this plugin, but I have the same doubt, is there an impact on performance?
No impact whatsoever, the script fires only every game minute and it does nothing more than a bunch of console commands
Exelent :)
i have dynamic time based tonemap and its great ,but this one have MCM ,nice :)
time to test it
Quick questions.
What exactly does this do? And i wonder if, would it make a difference in full static lighting? (r1/dx8)
It changes image brightness, contrast and ambience brightness and contrast based on time and weather. For dx8 only ambience parameters will work (lumscale amb and hemi)
Your mod works as intended, but now I have a black box overlay over my sun xD
i don't think thats the problem of this mod, it doesn't change textures
Если у меня меню настроек выглядит как в моде с которого он переписан Moddb.com (его я не ставил, просто привожу пример, значит ли это что я его поставил неправильно? Или тут другая клавиша вызова настроек?
у того мода нет настроек
Прошу прощения, не так выразился. У меня стоит мод графического интерфейса Moddb.com - и я думал управление модами подобно вашему идет через него. Но вид настроек отличается и по этому два вопроса: 1 - каков правильный порядок установки вашего мода? 2 - какой клавишей открывать настройки?
Тебе нужен Mod Configuration Menu, в нем настраиваются параметры этого мода
Предложу идею, но не знаю реализуемая ли она. Сделать туннели (которые идут НЕ отдельной локацией) более темными (т.к. в них особо нет источников света), для это необходимы координаты таких места, если я правильно понимаю. Данные координаты можно взять из мода "TB's Coordinate Based Safe Zones", он добавляет больше безопасных зон, а это чаще всего темные места (такие как туннели и разные подвалы). Что ты думаешь по этому поводу, реализуемо?
не каждая safe zone - подвал, и сделать это нормально и красиво а не просто "снизить яркость в зоне" с убогим резким переходом - нереализуемо
Понял, тогда вопрос исчерпан. В любом случае спасибо за мод, он отличный! :)
Thanks for this amazing feature, can you add time lapse, satiety and hunger?
add where?
Привет, мне нравиться этот аддон. Я немного не понимаю работу lumscale_amb, почему amb не увеличивается в пасмурную погоду. Ведь тени в пасмурную погоду становятся мягкими и неконтрастными, практически исчезают. Почему hemi не меняется большую часть времени, от этого земля становиться то слишком темной, то яркой. Надеюсь будет патч с настройкой яркости света, падающей на землю. Ведь утром солнце не может светить так же ярко, как днем. Спасибо за ваш аддон, он классный. Почитайте про освещение и тени в различное время суток и погоду. Об этом хорошо пишут на сайтах про рисование ) Удачи!
hemi здесь только для того, чтобы компенсировать излишнюю темноту земли по вечерам, оно не нуждается в постоянном изменении, ибо оно и так привязано к положению солнца. Покрути его ночью, например.
(Не)контрастность теней это в первую очередь влияние солнца, то бишь снова hemi, а не amb. И вообще с тенями amb мало как связан, это уровень общего освещения самого по себе. Слишком большой amb сделает подвалы, тоннели и прочие помещения абсолютно плоскими. Тем не менее, я залью апдейт, который позволит увеличить хеми и амб в зависимости от погоды, а не только уменьшить, так что мне не придется читать книжек, а вы настроите как вам угодно)
Благодарю вас за ваш труд, я действительно, плохо разбираюсь в этом, но меня раздражает то, что находясь в помещении с окнами, в нем ничего нельзя разглядеть. Скажите, а как работает скорость изменения тех или иных параметров?
грубо говоря, значение скорости показывает, как будет изменяться значение каждый игровой час. Это сумма основного значения и добавочного в определенные часы (9-13 и 1930-0000 для amb и 1930-0000 для hemi) т.е. например если общая скорость 0.1 ив 5 часов значение 1, то в 6 будет 1.1. Это приблизительно, так как работает сглаживание изменений значений.
Слушай, а возможно ли сделать такой же аддон, но только зависящий и от времени и от погоды? И сложно ли это будет сделать? Я бы хотел попробовать сделать это, будь у меня опыт и знания
Hi, do i need a new game when installing this mod? thanks
Hi, no, New game is not required
Please share your setting used for screenshots, as base settings looked imho not so good especially in foggy weather everything became suuuuuuuper bright so I needed to lower hemi from 1.3 to max 1.0
If you use any weather mod you of course should adjust the settings. The screen shots were done on supplied default settings. Also enhanced shaders can affect the brightness (I don't use them) , so it's good to reduce amb and hemj with those
amb and hemi gotcha, what about nights how to make it "visible" as it jsut black color :D looks cool at camps where fire is or friends with lamps around but over all flat black
you can increase minimal ambient to something like 0.35-0.4, that way they will be visible
ty for the tip, will make some tweaks and mby share the results then ;)
what flora overhaul was used on second picture ?
autumn dark texture pack was used (https://www.moddb.com/mods/stalker-anomaly/addons/autumn-dark)
thanks, this looks better than the other dynamic tonemap mod in my opinion, i'm enjoying so much traveling at night with just the moon's light now !
Nice Mod!
I have one question, is the monkey sleep fix script mandatory for this mod?
It fixes the malfunction of time events if you try to sleep while getting bleeded or irradiated, resulting in complete breakage of those. Since this mod uses time events, its mandatory. It also works for other mods using time events, for example Food Drug And Drink Animations or Keep Crafting Windows Opened
Yeah I got told that by Feel_Fried today too :D (Creator of FDDA). I have one problem though, with Arszi's radiation overhaul you should be able to sleep while irradiated but your monkeypatch overwrites that section and I do not get it to work without the radiation check. The game always crashes without an error if I want to go to sleep then.
since its possible to sleep radiated with that mod, try to remove monkeypatch from my mod then and see if it works
yeah it does work, tested it. But the other problem is that I want to use the Immersive Sleep mod ( Moddb.com) and without your monkeypatch or the "ui_sleep_dialog.script" which Feel_Fried provided me, which inplemented the stuff your monkeypatch does, the game will freeze because of the FDDA addon.
Which means I need the fix for the sleep diablo script but I would like to make it work without a radiation check for sleeping, I have no experience in that stuff and can only try stuff without understanding what I am actually doing :s.
When I first installed this I noticed everything got brighter, now when I uninstall it or disable it in MCM it doesn´t seem to go back to default...? Does this modify config files or something? I don´t understand why my game keeps looking brighter even when I uninstall the mod
Yes, it does overwrite config variables, otherwise it wouldn't work. You can try to reduce the brightness, there are tips to tweak it in the description
Can you tell me which config file exactly? Is it user.ltx in appdata or smth else?
yea, user.ltx.
but you don't need to edit config files, you can also edit them in game.
the mod is manipulating those variables through these console commands
r2_tonemap_adaptation
r2_tonemap_amount
r2_tonemap_lowlum
r2_tonemap_middlegray
r2_sun_lumscale_amb
r2_sun_lumscale_hemi
thanks, it makes me uneasy when I don´t know how to revert something
toying around with the values now, I like a bleak/dark zone so it´s a bit bright for me by default
I have a problem.
I am at garbage, it is 20:30 in the evening, it look like this:
Ibb.co
The sun is behind the building and everything.
I want to pinpoint what is causing this, I checked the Lumscale Hemi and is at 1.9, the max allow by this mod at the current setting and daytime. Every time i tried to change that value, the mod reset it back to 1.9.
I infer that that value is after the mod make some calculations based in current settings, but i don't know what values to change or how much.
I tried uninstalling the mod and restoring the user.ltx (i make a backup before installing this mod)to see what i should look like but i get a pinch black screen, i event deleted the shader cache.
I don't know if other factor get in, for instance other mods, i am running the weather mod of Aggressor reshade (only the weather mod, not the reshade) and Enhanced Shaders and Color Gradings.
I made a savegame of this moment to have a template to work on so this don't repeat again and i could get the proper settings and values.
Aggressor and Enhanced Shaders require tweaking of this mod. This mod was tested and setup for vanilla weathers. in MCM you can lower hemi values until your you satisfied
Thx for the quick reply!
I lowered the hemi values a factor of 0.4 (from 1.9 to 1.5 in the max / 1.3 to 0.9 in the min) and so far looks good.
In other topic, I found the solution to the problem with the black screen after uninstalling the mod, if you are running Enhanced Shaders, you need to run the command "cfg_load grading_vanilla" to fix the problem.