Improved tonemapping with variable Day/Night settings.

share shaders here
  • Author
  • Message
Offline
Posts: 4
Joined: 13 Dec 2012, 09:02

Improved tonemapping with variable Day/Night settings.

Update: New version up!

Previous Update: New Screenshots added below with higher res textures, better grass, some bokeh/depth of field from gp65cj04's great enbprepass file, and some reasonable tweaks to the environment (that are small enough they shouldn't break the default weather lighting much).

Improved tonemapping with variable Day/Night/Interior settings
I'm running a bit short on sleep at the moment, so I'll keep this as bare-bones as possible. After a week or two of (repeatedly) tweaking my enb settings for Skyrim when one lighting condition or another just didn't look right, juggling a half dozen lighting mods, and trying a variety of alternate enbeffects presets, I just couldn't find anything that was just right...

Almost all the presets I tried could look absolutely incredible, at least in specific lighting conditions, but they required so many tweaks to the environment and sky settings that what might look wonderful under one set of conditions (daylight, outside) would be blinding white, pitch black, or dull and unsaturated in other conditions (say, in snow covered areas, or underground). All the tweaks to the environment settings I was making were also badly mangling the lighting in the built in weather conditions (I know there is some support for altering ENB settings based on weather conditions, but I wasn't really interested in tweaking a huge list of environment variables for every weather type).

Most presets/effects I tried were wonderful for screenshots, but not so great when it came to playability (at least on my ageing computer/monitor), so I decided to write my own...

What does it add?
-- Tonemapping and Saturation controls that don't dim bright colors/white pixels or add too much brightness to darker colors. No more flat washed out shadows or dim gray skies.

-- Post processing that works well with the vanilla color correction, but doesn't turn everything more than 10 ft. from your face into pea soup if you turn the vanilla color correction off.

-- Day/Night/Interior settings for everything, so you can have the darker (or brighter) nights you want without killing your daylight settings, all without touching one single lighting option in enbsettings.ini (which at least to me is a big upside, since that means the default weather conditions come out looking just about right).

What doesn't it add?
-- A ton of overhead. At least on my system (which admittedly is ageing), I lost no more framerate than I did using the default ENB postprocessing (1-4 fps).

-- Any really flashy, eye catching effects (other than the effect of better control over color and lighting).

How about some screenshots then, if you're so happy with it?
Well alright, if you insist... fair warning, my computer is not exactly new (as I've mentioned), so the screenshots below are not going to be a cavalcade of wonders. What they are going to be is a good demonstration of how nice the new effects can look with absolutely no tweaks to lighting and environment variables. All of these were taken using the default in game gamma, with no tweaking whatsoever of the post processing settings between screenshots, and with every single environment intensity and curve variable set to a flat unmodified 1.0 (with the sole exception of the night time fog color multiplier, which was 0.8). The top left half of each shot shows what the default ENB effects look like under those conditions, while the bottom right half shows the new effects.

tl;dr: For those who skipped ahead to the screenshots, at least read this: None of these screenshots look astounding. My computer is old. The purpose of them is to show the sort of improved saturation and tonemapping you'd see in actual gameplay under a variety of conditions, not to look like a still frame out of a pixar movie.

Richer Colors
Image

Brighter Days
Image

Image

Darker Nights
Image

Image

Clearly Lit Interiors
Image

Image

All without one tweak between...
Last edited by Brodiggan on 16 Dec 2012, 22:16, edited 6 times in total.

Offline
*sensei*
Posts: 288
Joined: 24 Mar 2012, 16:21

Re: Improved tonemapping with variable Day/Night settings.

Sounds great.
I'll give it a try.

Offline
Posts: 4
Joined: 13 Dec 2012, 09:02

Re: Improved tonemapping with variable Day/Night settings.

Let me know if you have any issues; I'm probably going to be tweaking it for a while yet.

Offline
Posts: 4
Joined: 13 Dec 2012, 09:02

Re: Improved tonemapping with variable Day/Night settings.

New Screenshots with added shiny. The depth of field and bokeh effects in these images are the product of gp65cj04's great enbprepass file. These screenshots are just meant to show that my tonemapping/saturation tweaks still look great even once you start turning on all other the bells and whistles.

As before, the right side of each image is using my new post processing, while the left side is using the default ENB post processing. All other settings are identical.

Image

Image

Image

Image

Image

Image

Image

Offline
Posts: 4
Joined: 13 Dec 2012, 09:02

Re: Improved tonemapping with variable Day/Night settings.

New Version (v 1.1)
- Moved some of the basic math I was doing off into curve functions, hopefully these could be useful for someone else (for tonemapping or otherwise).
- Fixed a luminosity bug, no more color artifacts in very bright or very dark conditions.
- Added a "brightness" curve setting. This should make it easier to replicate certain effects the default ENB postprocessing can provide (particularly the luminous/soft lighting on skin effect).
- Renamed some settings to make it more clear what they effect.

New Tonemapping
Image
Image
Image

Old Default Tonemapping
Image
Image
Image

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: Improved tonemapping with variable Day/Night settings.

Always in the look out for new code like this, and it looks like a good addition for the tweaking community :)

So will test this out and give you some of my feedback on your new tonemapping feature, and pictures ;)

Offline
Posts: 34
Joined: 20 Jan 2013, 21:23

Re: Improved tonemapping with variable Day/Night settings.

The library functions are actually very good ... working on two projects ATM that use them. Will have credit in code comments and on page.

Offline
User avatar
Posts: 80
Joined: 12 Sep 2012, 22:29
Location: US

Re: Improved tonemapping with variable Day/Night settings.

Interesting. I'll try it!
_________________
Image

Offline
Posts: 34
Joined: 20 Jan 2013, 21:23

Re: Improved tonemapping with variable Day/Night settings.

First project using your functions is basically done. Just waiting on permission from dpeasant for some of his exposure and mood code (unless he gave blanket somewhere I'm not aware of?)

viewtopic.php?f=11&t=1666&p=21689#p21689

Offline
Posts: 66
Joined: 20 May 2012, 13:34

Re: Improved tonemapping with variable Day/Night settings.

Zinthros , do you know dpeasant ? i want to ask him for using his code too.

i not see him for a long time ..ahh and i cant read all 800 + pages on that topic too. -.-
Post Reply