News for hackers. Stuff that matters.
Re:My mental model of how alpha opacity works is wrong (2020) by zokier on Saturday February 05, 2022 @05:12PM (#30226767)
Involving colors is much more complicated than that; in theory if you shine white light through stack a red filter on top of blue filter, I'd expect the intersecting area to be closer to black than purple. You can see that in for example this picture: https://www.walmart.com/ip/Sightmark-32mm-Filters/31197086

This is just the tip of the iceberg when it comes to the complexity of translucent objects. To get truly convincing results spectral rendering is needed, but of course that is prohibitively expensive for real-time use.

Re:My mental model of how alpha opacity works is wrong (2020) by twelvechairs on Saturday February 05, 2022 @07:26PM (#30227925)
Yes its all very loosely approximated to real life anyway when avoiding the spectral level. Its not just the filter but also the quality of light being emitted/reflected from behind - A broad spectrum light like the sun will create more even effects while narrow spectrum lights like flourescent lamps or HPS street lamps can act variably.

Looking through a yellow filter at a yellow flourescent light - you could easily see almost all the original light (bright yellow) or none (black) depending on the spectral transmission of the filter.

Re:My mental model of how alpha opacity works is wrong (2020) by astrange on Saturday February 05, 2022 @11:49PM (#30229558)
You also need to simulate polarization (and maybe quantum mechanics) for sunglasses to work properly.
Re:My mental model of how alpha opacity works is wrong (2020) by cycomanic on Sunday February 06, 2022 @03:54AM (#30230609)
I don't know where the quantum nature of light would come in for sunglasses, but you are correct polarisation would definitely be needed.
Re:My mental model of how alpha opacity works is wrong (2020) by astrange on Sunday February 06, 2022 @04:50AM (#30230962)
It's claimed that polarization is due to quantum effects.

https://www.youtube.com/watch?v=zcqZHYo7ONs

…I think it actually isn't and the people explaining it have just forgotten it's supposed to be a metaphor though.

Re:My mental model of how alpha opacity works is wrong (2020) by rcxdude on Sunday February 06, 2022 @09:11AM (#30232610)
polarization is very much a quantum effect, however the specific experiment in the video does not prove the quantum wierdness because the setup does allow a hidden variable explanation.
Re:My mental model of how alpha opacity works is wrong (2020) by sharikous on Sunday February 06, 2022 @05:14AM (#30231088)
Polarization of a single photon has to be treated in a QM framework , but there is no need for that with normal sources.

Also, polarization as a degree of freedom arises out of symmetry considerations, and that's what you learn in QFT.

Re:My mental model of how alpha opacity works is wrong (2020) by pishpash on Saturday February 05, 2022 @09:58PM (#30228897)
Why is that any more difficult than calculating color reflection/absorption on a surface? Both presumably involve multiplication in spectrum space.
Re:My mental model of how alpha opacity works is wrong (2020) by usrusr on Sunday February 06, 2022 @12:58AM (#30229893)
You don't have multiple of those stacked on top of each other. At least not as long as you don't dive deep into the global illumination rabbit hole. And then you've got bigger and more pressing problems to solve.
Re:My mental model of how alpha opacity works is wrong (2020) by zokier on Sunday February 06, 2022 @09:06AM (#30232565)
Yes, you are right that conceptually it is the same problem both with reflections and transmissions. The key difference is that in typical scenes indirect/bounce lighting tends to have comparatively subtle effect whereas translucency, especially when colored, can be easily quite apparent. Colored mirrors are pretty rare but colored transparent objects are very common.