> [...] the only reason to use gamma encoding for digital images is because it allows us to store images more efficiently on a limited bit-length [...] It's interesting how this part of the trade-off changes when using float16 for color components (as is common when HDR is involved) rather uint8. Good timing that Safari 27 adds support for srgb-linear and display-p3-linear color spaces.
What every coder should know about gamma (2016)
21–30 of 50 posts
Re: What every coder should know about gamma (2016)
#22Re: What every coder should know about gamma (2016)
#23for lot of image processing linearizing srgb is only half-way measure, and you might want to reach for a better colorspace altogether. cielab is obvious example, or maybe oklab/jzazbz/xyb/something else.
Depends. Many times a linear colorspace is exactly what you want.
Re: What every coder should know about gamma (2016)
#24This article contains some pretty major errors, which is kind of surprising to see! >The transformation used to represent the physically linear intensity data either generated synthetically via an algorithm or captured by a linear device (such as a CMOS of a digital camera or a scanner) with the discrete values of the perceptually linear scale is called gamma encoding. This isn't super correct, and it underscores the…
When doing a smooth fade-to-black in video, you may want to gradually decrease the amount of emitted light from the whole frame in a way that is smooth to a human. Here I think you should consider how a perceptual space can help.
Re: What every coder should know about gamma (2016)
#25This is why when these older games crashed on your PC, the monitor would look all washed out due to the manual gamma adjustments the game made that didn't get restored.
Re: What every coder should know about gamma (2016)
#26Re: What every coder should know about gamma (2016)
#27I work on the open-sourced Jedi Academy game engine, which is based on id tech 3. It has special logic to specifically adjust the gamma of the physical monitor during launch, then restore it upon exit. This is why when these older games crashed on your PC, the monitor would look all washed out due to the manual gamma adjustments the game made that didn't get restored.
Re: What every coder should know about gamma (2016)
#28What every coder should know about gamma (2016) - https://news.ycombinator.com/item?id=27721094 - July 2021 (50 comments)
What every coder should know about gamma - https://news.ycombinator.com/item?id=12552094 - Sept 2016 (183 comments)
Re: What every coder should know about gamma (2016)
#29I work on the open-sourced Jedi Academy game engine, which is based on id tech 3. It has special logic to specifically adjust the gamma of the physical monitor during launch, then restore it upon exit. This is why when these older games crashed on your PC, the monitor would look all washed out due to the manual gamma adjustments the game made that didn't get restored.
Re: What every coder should know about gamma (2016)
#30Earlier quoted context omitted.
> or one where 0 is not no light Oh, interesting. What's an example of this? Some sort of log space?
I would think the color spaces of most displays have that, don’t they? The bevel of a black iPhone is darker than its screen, even when powered off. Similarly, switched off CRT displays aren’t truly black.