Skip to content

A cool-headed display transform

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

h3r2tic/tony-mc-mapface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌈 Tony McMapface 🌈

Takes HDR Rec.709/sRGB stimulus, and maps it to LDR. It's tranquil and collected, and won't set your eyes ablaze.

About

Tony is a display transform intended for real-time applications such as games. It is intentionally boring, does not increase contrast or saturation, and stays close to the input stimulus where compression isn't necessary.

It ships as a LUT along with a bit of shader code for sampling. There's no tweakables; if you need a different look, do it before and/or after the display transform.

Please note that the shader output is linear, so if "gamma space" sRGB is desired, the sRGB OETF must be used afterwards.

There's also a basic OCIO config with sRGB output.

Disclaimer: Tony McMapface is phenomenological, and tuned to its author's visual system (with mixed success). If you need something mathematically pure, try AgX.

Ports 💖

Derivation

The generator's source code will come at a later time. Meanwhile, here's a TL;DR:

Tony McMapface takes a maximalist approach to the image formation process, and explicitly models perceptual phenomena:

  • Brightness-equivalent luminance of the input stimulus is compressed (accounting for the Helmholtz–Kohlrausch effect).
    • The non-linearity resembles Reinhard.
  • Color hues are preserved during compression, except for a deliberate Bezold–Brücke shift.
  • To avoid posterization, selective desaturation is employed, with care to avoid the Abney effect.

As can be expected, the models underlying this process are imperfect, thus a liberal amount of eyeballing and fine tuning was applied.

Examples

Acknowledgments

Thanks to Chris Brejon, David Briggs, Jed Smith, Troy Sobotka, and Alex Tardif for their excellent write-ups about color.

Special thanks to Troy Sobotka for eye-opening discussions, and triggering my obsessions 🙈

License

This contribution is dual licensed under EITHER OF

at your option.

About

A cool-headed display transform

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks