Coder Social home page Coder Social logo

tony-mc-mapface's Introduction

🌈 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.

tony-mc-mapface's People

Contributors

h3r2tic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.