Loading video...

Video Failed to Load

Go Home

Why does tonemapping turn my landscape cyan in the distance? Because Unity's tonemapping turns most bright colors into yellow, cyan or magenta. So I implemented my own hue-preserving tonemapping.

10,818 views โ€ข 2 years ago โ€ขvia X (Twitter)

10 Comments

NOTimothyLottes's profile picture
NOTimothyLottes2 years ago

@SheriefFYI Overexposure converging to primary and secondary hues doesn't work for the majority of content, it has to get to white instead, thus in the walk to white either hue shift or desaturate, pick your poison mix.

Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜'s profile picture
Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜2 years ago

@SheriefFYI Yeah, going to white without changing hue was the reason for my tonemapper. It does desaturate in the process, as all approaches do eventually, if they go to white. Although, for fully saturated colors it wonโ€™t go to white at all if the whitening parameter is zero.

IVAN32_LEAN_AND_MEAN ๐ŸŒฒ๐ŸŽ๏ธ๐Ÿ’จ๐ŸŒฒ's profile picture
IVAN32_LEAN_AND_MEAN ๐ŸŒฒ๐ŸŽ๏ธ๐Ÿ’จ๐ŸŒฒ2 years ago

Interesting. But if your sky "whitens" then it might just be too bright / or the camera is overexposed? It makes sense that very bright colors should whiten, except if it's single wavelength, (monochromatic), and the sky is not.

Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜'s profile picture
Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜2 years ago

My main point was that I wanted to avoid the hue to change (e.g. blue->cyan). My tonemapping implementation also makes non-monochromatic colors white eventually (and optionally even monochromatic ones too, like ACES does). But it does it without altering the hue along the way.

Nihal Rahman's profile picture
Nihal Rahman2 years ago

take a look at things like AgX or TonyMcMapFace They are flexible "Hue-preserving" that also rolloff highlights ( what is more technically should be called insetting )

Anton's profile picture
Anton2 years ago

Isnt thats what tonemapping supposed to fix ;]

Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜'s profile picture
Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜2 years ago

You'd think so :)

Ben Throop's profile picture
Ben Throop2 years ago

does the fog use atmospheric scattering?

Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜'s profile picture
Rune Skovbo Johansen โ†’๐Ÿฆ‹๐Ÿ˜2 years ago

No, it's the primitive built-in fog in Scene settings which is just interpolating towards a single color based on exponential squared distance. And it doesn't affect the skybox; only the ground.

Jaroslav Stehlik (mystery)'s profile picture
Jaroslav Stehlik (mystery)2 years ago

Wow, I am pretty sure I had this issue as well when I was working on my never finished vr game :)

Related Videos