44 points · by holg · 7mo ago · 20 comments
The atmospheric scattering model is currently single-scattering Rayleigh+Mie. Is that defensible for the use case, or should I move toward multi-scattering? The Bistro test scene works well visually but isn't a controlled environment. Anyone know of a public urban geometry asset that's more typical of real road-lighting evaluation? The CJJ 45 implementation (China's national road lighting standard) is the only one I've had to reverse-engineer from translated PDFs. If anyone has primary-source experience with it, I'd value a sanity check.
Open-source on GitHub (eulumdat-rs and the related crates). Crates.io: eulumdat
Why can't I create any light pollution no matter what I do? The stars wink out when the light pollution is 1000x less bright than the stars. It just feels completely disconnected from what I know light pollution feels like.
If I may make a technical suggestion, accurately representing the "qualia" of what both the presence and absence of colorful light feels like on a monitor requires compressing the color space a bit. Take a gander at this: https://brandonli.net/spectra/doc/
So here's the suggestion: there should be a "number of upward lights" slider which should influence an atmospheric light haze shader which, like real light pollution is brightest near the horizon. Then you could use a relatively real stellar skymap and give a sense of what it feels like to lose sight of the heavens, which is a kind of shocking thing to see, as well as what it might take to fix it.
I couldn't even get it to do anything indicating it was functional on my laptop.
Tested in Firefox/Brave/Chrome on Linux.