News for hackers. Stuff that matters.
Re:Games Look Bad: HDR and Tone Mapping by symstym on Tuesday October 24, 2017 @12:04AM (#15539125)
I'm not sure this is a constructive comment, but I just wanted to say that you are completely correct, everyone else is crazy, and I am baffled at how much confusion there seems to be over this topic.

One thing to add: Wikipedia sayeth "the eye senses brightness approximately logarithmically over a moderate range". If we go with that, then you presumably want to encode brightness logarithmically, and the number of bits you have available will determine the ratio between your adjacent quantized levels. In that case I believe the ratio between adjacent levels would be exp(ln(max_range_ratio)/(2^bits)).

Re:Games Look Bad: HDR and Tone Mapping by Promit on Tuesday October 24, 2017 @01:34AM (#15539463)
You don't want to encode brightness perceptually until you're showing it to the user. You need a linear space to actually do lighting calculations, which means physical luminance values. Within that space, you can use whatever scale you wish, with consequences to banding and quantization artifacts for decimating the bit depth. Tone mapping includes conversion to a log space via the gamma curve.

I explained it in another comment but basically the "20 bit" value is based on an idealized digital image sensor rather than a game rendering pipeline (which operates in floating point). It has admittedly proven somewhat confusing.

Re:Games Look Bad: HDR and Tone Mapping by Dylan16807 on Tuesday October 24, 2017 @02:49AM (#15539719)
It's worth noting explicitly that floating point numbers let you have a linear scale but logarithmic-ish storage at the same time. A 12-bit float could represent a 1:1000000 range, let you perform normal linear math, and also be just as banding-free as a 20 bit integer.
Re:Games Look Bad: HDR and Tone Mapping by onikolas on Tuesday October 24, 2017 @01:30AM (#15539443)
That's why even the good old 8 bits per channel images are encoded logarithmically. Enter the gamma curve: https://en.wikipedia.org/wiki/Gamma_correction
Re:Games Look Bad: HDR and Tone Mapping by Taniwha on Tuesday October 24, 2017 @05:07AM (#15540237)
no - the REASON why we use gamma is deeply historical and has essentially to do with trying to build TV receivers with the minimum number of vacuum tubes
Re:Games Look Bad: HDR and Tone Mapping by mark-r on Tuesday October 24, 2017 @07:48AM (#15540878)
Is it just a coincidence that the gamma curve also corresponds roughly to our eyes response to light? Awfully lucky if it was.