4 ms·
sometimes i read things like this, and i'm astounded that anyone could have developed a mental model so incorrect and unintuitive but close enough to persist fo
by ruined 5y ago
sometimes i read things like this, and i'm astounded that anyone could have developed a mental model so incorrect and unintuitive but close enough to persist for a while.
then i remind myself that i probably have a few situations like that in my own mind and i should remain vigilant.
edit: and then i get just a little more frustrated next time someone resists a correction that i provide.
- gs17 5y ago> incorrect and unintuitive The thing that you might be missing is that "incorrect" is (usually) objective, but "unintuitive" isn't necessarily so. I can see how someone else would think additive opacity is intuitive, even if it's very easy to show that it isn't correct.
- marcosdumay 5y agoEvery one of those things limited to [0; 1] combine multiplicativelly. (Mostly because they are some kind of probability or vectorial projection - what are the same thing, by the way.) You are right that "intuitive" is a subjective property. But I'm completely lost trying to imagine what kind of life experiences can lead on to expect them to be additive.
- nerdponx 5y agoI also thought that opacity was additive and clamped to 0,1 until right now. Seem intuitive to me. Half + half = whole. When I make a chart in R and set the color to alpha 0.5, the result looks more or less like an opaque point if I plot 2 of them on top of each other. Apparently that's wrong, but it's consistent with my not-very-precise observations, and I have never had a need or desire to learn more about how opacity works. One cannot be an expert in all things. What intuition should a layperson have to suggest that obviously opacity/transmissivity is multiplicative? I don't see the value in deriding the incorrect intuition of uneducated people. In statistics at least we accept that statistics is hard specifically because it can be unintuitive.
- marcosdumay 5y agoOut of curiosity, did you have any rationalization for why clamping it made sense, or you just didn't think about it?
- nerdponx 5y ago"How can something be more opaque than fully opaque?" was my intuition (and probably many other people's). Also RGBA numbers are generally clamped to 0,255.
- marcosdumay 5y agoOk, I guess the repulsiveness of a clamping operation is something we learn. If one doesn't learn to fear it, it's an operation like any other. Should have been obvious, but I never thought about it.
- Agentlien 5y agoWhy do you call it repulsive? It's a very common operation in graphics. Even so that certain graphics processors have a flag for floating point operations which allow the results to be saturated (clamped to [0,1]) at no extra cost. I know I prefer to avoid it and design equations so it isn't necessary. That often helps make the math cleaner and more well behaved. But repulsion sounds stronger than what I feel. I would say there are plenty of cases where things do act additively yet we wish to clamp their values to a specific range (often valid colours).
- marcosdumay 5y agoIt does appear when you are trying to optimize graphical operations and change the real physical models with approximate ones. It's also a signal that your approximate model won't behave well on repeated application, what is normally not a problem in graphics display, but a red flag on general purpose image processing. On a physical model, it is a very strong signal that you messed something up and your model is wrong. Sometimes you get something that looks like a sigmoid but has the exponential parts very short, so it looks like a clamped linear function, but you normally need some kind of mechanism limiting the output on the linear region. Simple phenomena do not have clamping, it is a very complex operation.
- coldtea 5y ago>But I'm completely lost trying to imagine what kind of life experiences can lead on to expect them to be additive. I, on the other hand, am completely lost trying to imagine what kind of life experiences can lead one to believe the OP error requires some "unique/rare" life experience. How about the very common life experience of (a) not being good at math but still being a programmmer and having eventually to deal with something math-y? or (b) the life experience of someone who might now enough math to get this, but didn't give it alpha opacity much thought before, and the simple addition model was good enough for them (as they never had to do anything special with it)?
- rebuilder 5y agoIt depends on what your experience is with. If you've done any digital painting, you're probably all too familiar with low-opacity strokes seeming to never add up to full opacity, and will have concluded the opacities are not simply added together.
- dahart 5y agoI immediately assumed the author might have been pretending a bit in order to motivate the article. Self deprecation sometimes makes things more relatable. I bet there’s even a name for using self deprecation initially as an excuse or motivation to make a point, but I don’t know what it is. That said, I’m well aware that opacity is multiplicative, and yet it still caught me off guard before to realize that the commonly used lerp blending mode (SRC_ALPHA, ONE_MINUS_SRC_ALPHA) is incorrect in the alpha channel. Pre-multiplied alpha can also be unintuitive at first, even with a decent mental model.
- ryanschneider 5y ago> but I don’t know what it is Or are you just pretending not to know to seem more relatable?
- dahart 5y ago:) hehe, well now I have to admit I actually tried to look it up, ended up on the Wikipedia list of rhetorical device names, and only got halfway through the A’s before giving up.