"reverse tonemapping"?

  • Posts: 97
3 years 3 days ago - 3 years 3 days ago #21 by NoMansReshade
Minimal research resulted in the finding of this:
Slope = 0.98;
Toe = 0.3;
Shoulder = 0.22;
BlackClip = 0;
WhiteClip = 0.025;

Theses seem to be the default tonemapping values for UE4. Haven't tried these myself, but will check back when I have.

EDIT:
Can confirm, these values look great!

(yes the light is supposed to be white)

Will continue testing.

EDIT 2:
Fixed the overblown lighting, forgot that I had multiplied the different blur passes to make them brighter :D

Colored light screenshot:
The following user(s) said Thank You: luluco250

Please Log in or Create an account to join the conversation.

  • Posts: 177
3 years 2 days ago - 3 years 2 days ago #22 by luluco250
Any ideas on how we could reduce hue shifting?

Bright colors lose a lot of their precision (for obvious reasons), you can see how the bloom on the building shifts between yellow and red:


Perhaps there is a way to preserve the hue from the LDR image and reapply it to the HDR one?

Also adaptation seems to work better with multiplying just bloom, not actually using it as exposure in the tonemapping function (might be fixable with getting the adaptation from HDR + bloom, not just HDR alone, but that'd require an extra texture).

Edit:
Also, exp() is very useful for adapting the HDR texture.

Please Log in or Create an account to join the conversation.

  • Posts: 97
3 years 2 days ago - 3 years 2 days ago #23 by NoMansReshade
I have encountered some of the problems you describe, however, I fixed them by just reducing the saturation of the bloom (hacky, I know.) Regardless, you may want to take a look at this: www.bulletforge.org/u/misaki-rindou/p/hl...rce-hue-shift-effect (The HLSL one)

It seems pretty complicated for such a simple task, unfortunately. It would also seem like the bloom is always about 5 hue shifts below what it needs to be... As to how we fix this, I'm not entirely sure. Although, I'm pretty sure it has something to do with the tonemapping algorithm.

Please Log in or Create an account to join the conversation.

  • Posts: 1
2 years 9 months ago - 2 years 9 months ago #24 by MeatSafeMurderer
Spent some time inversing Hables operator...enjoy :)
y = ((0-((x+E/F)*B-C*B))-sqrt((((x+E/F)*B-C*B)*((x+E/F)*B-C*B))-4*((x+E/F)*A-A)*((x+E/F)*D*F-D*E)))/(2*((x+E/F)*A-A))
This was pretty fun to find the inverse. It needed me to relearn alot of stuff...never thought I'd use the quadratic formula again...

Please Log in or Create an account to join the conversation.

  • Posts: 29
2 years 9 months ago #25 by Androll
Hey bro, i want to use this thing right now badly, mind sharing your files? I don't have slightest idea how to handle things posted here, but results are amazing!

Please Log in or Create an account to join the conversation.