Multiple Lights Not Working Shadow Map Atlas - Browser / HTML5
See original GitHub issueThank you for contributing to Armory!
Description Shadow Map Atlas is not working with multiple lights when targeting HTML5. Under those conditions shadows will break when rendering
To Reproduce
Add multiple lights to the scene and some objects, select Runtime
-> Browser
, enable Shadow Map Atlasing
under Armory Render Path
-> Shadows
, play.
Expected behavior
System Blender: 2.83.10 Armory: latest commit OS: Ubuntu 20.04.2 LTS Graphics card: AMD RX 480 (mesa drivers)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Shadow Mapping / Multiple lights : r/opengl - Reddit
I got shadow mapping fully working for one directional light in my scene and now I wanna add other lights that cast shadows....
Read more >3D lights and shadows - Godot Docs
Check if any object affecting the shadow map has changed. If it did, re-render the light. If neither of the above has happened,...
Read more >Movable Lights | Unreal Engine 4.27 Documentation
Shadow Map Caching and Performance · Select all of the lights that you want to have cast dynamic shadows in your project's level....
Read more >"Reduced additional punctual light shadows resolution ...
It seems like you have to lower the High Tier to fit with the Atlas Resolution. I set my Atlas to 4096 and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The changes I pushed for armory and iron should solve the issue with sun, with browser (at least by circumventing it with the way you found with the “double inversion”) and remove the need of the inversion of the shader to save some gpu cycles, please test it out and tell me if I can open a PR @Naxela 👍
Edit: I pushed another commit to iron to support sun with 1 cascade too.
Oops, yeah I forgot to check and add for DirectX too 😅 …
Nice! If you don’t mind I will copy what you did and push another commit and open a PR.
I’ve checked and HTML5 and Krom openGL works 👍
Maybe… AFAIK It’s still untested in MacOS with Metal, Safari (not sure if it’s a supported target though), other non-chromium based browsers, Linux © (which I’ve tried but I get this https://github.com/armory3d/armory/issues/2067 even with the default cube), Windows ©, Android, and others that I’ve possibly forgotten.