{"by":"holg","descendants":20,"id":47984734,"kids":[47985805,48007426,48021427,47985660,47985272,47985195],"score":44,"text":"Hi HN — author here. iesna.eu is a browser-based ecosystem for working with photometric data: parsing standard luminaire files (LDT&#x2F;EULUMDAT, IES LM-63, Oxytech, ATLA-S001), running design calculations against EN 13201 &#x2F; ANSI&#x2F;IES RP-8 &#x2F; CJJ 45 &#x2F; IES-IDA MLO, and (the part I most want to show off here) rendering real urban scenes in Bevy with the photometric data driving actual streetlight behavior, including sky-glow contribution.\nThe Skyglow Analysis demo loads a real LDT file into a Bevy scene (Khronos Bistro test asset). \nThe luminaire&#x27;s intensity distribution drives the streetlight rendering directly — no fudging — and the sky-glow grade updates live as you adjust the uplight percentage. Swap to a full-cutoff fixture and the sky goes from F (Severe) back to A (Excellent). You can see the difference on the buildings as well as in the sky.\nStack: Rust core (eulumdat-rs and friends, ~20 crates handling photometric formats), Bevy for the 3D rendering, WASM for browser deployment. No backend; everything runs client-side. About a thousand lines of new code on top of the existing photometric library to make the Bevy integration work.\nThings I&#x27;d love feedback on:<p>The atmospheric scattering model is currently single-scattering Rayleigh+Mie. Is that defensible for the use case, or should I move toward multi-scattering?\nThe Bistro test scene works well visually but isn&#x27;t a controlled environment. \nAnyone know of a public urban geometry asset that&#x27;s more typical of real road-lighting evaluation?\nThe CJJ 45 implementation (China&#x27;s national road lighting standard) is the only one I&#x27;ve had to reverse-engineer from translated PDFs. \nIf anyone has primary-source experience with it, I&#x27;d value a sanity check.<p>Open-source on GitHub (eulumdat-rs and the related crates).\nCrates.io: eulumdat","time":1777712898,"title":"Show HN: Browser-based light pollution simulator using real photometric data","type":"story","url":"https://iesna.eu/?wasm=skyglow_demo"}