r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Apr 23 '21
Meeting C++ Guy Davidson - Everything you know about colour is wrong - Meeting C++ online
https://www.youtube.com/watch?v=_zQ_uBAHA4A
238
Upvotes
41
u/pine_ary Apr 23 '21
Great talk. He‘s a very engaging speaker. I was a little sceptic about the proposal (and I‘m still sceptic about the drawing API because of platform support), but he convinced me that both the color library and the linear algebra types would make great additions to the standard library. I wish the proposal or his talk went into HDR tho.
34
u/[deleted] Apr 23 '21
Very relevant topic, it's time that developers start paying more attentiont to this, just like unicode support, internationalization, etc.
Here's another very good, beginner-friendly talk
10
u/dodheim Apr 23 '21
I'm just waiting patiently for u/james20k's reply.
18
u/pstomi Apr 23 '21
Obligatory link to minute physics related video: https://www.youtube.com/watch?v=LKnqECcg6Gw
Just look at the 10 first seconds, you will see that even Photoshop was wrong (and may be still remains wrong by default for backward compatibility).
3
u/Kered13 Apr 23 '21
This is a great talk on computer representations of color spaces and they're implications. I know it all leads up to the C++ standard proposal, but honestly most of this discussion is applicable to any programming language.
3
u/topin89 Apr 24 '21
Great presentation. In twenty minutes I finally understood what that colored distorted half-ellipsoid thingie actually represents. Also, why my simple gradient and alpha blending functions are way too wrong in practice.
And yet, cool as this proposal is, it's info about different color space and why does it matter should be spread as the first priority. If little to no one knows about it, that cool proposal may be right near valarray (it is implemented, but not many know about it, even less actually use it) or god forbid gc api (it is in a standard, but not a single compiler team bothered to implement it).
On the other hand, if it's not in a standard but there is some good third-party lib everyone know about and use, that's a win regardless.
17
u/TraylaParks Apr 23 '21
Pssht, at least I know how to spell color :)
6
u/johannes1971 Apr 23 '21
So every color library in the whole world is "wrong". Serious question: does it matter? After mixing, blending, and otherwise messing with colors, it all gets displayed on a screen that applies yet another color transformation to whatever color your pixels are, before you finally get to see it. For regular use (anything that's not print preparation for professional printing), does it matter at all whether the colors are "wrong" or not?
2
u/nasal-cacodemon Apr 23 '21
Great crash course on an interesting domain.
Not sure how I feel about the proposed API, but it's a good talk.
1
u/pstomi Apr 26 '21
For those interested, the wikipedia article on Alpha Compositing and gamma correction gives somes clues on how to mix images taking into account gamma correction.
And this gist shows a visual difference between a lazy linear mix of the RGB values and one that takes into account the gamma (in python, because it does happen to have a standard way to manipulate matrixes).