armory3d / armory3d/armory

Multiple Lights Not Working Shadow Map Atlas - Browser / HTML5

Open
#2,110 19 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

Thank 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

![image](https://user-images.githubusercontent.com/42382648/107991881-4ce8fa80-6fb6-11eb-9ca6-6a7d207e6acf.png)

**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**
![image](https://user-images.githubusercontent.com/42382648/107991914-5b371680-6fb6-11eb-9c96-917540078f8a.png)

**System**
Blender: 2.83.10
Armory: latest commit
OS: Ubuntu 20.04.2 LTS
Graphics card: AMD RX 480 (mesa drivers)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the HTML5 Browser runtime with multiple lights, scene objects, and Shadow Map Atlasing enabled under Armory Render Path → Shadows. Compare the broken and expected shadow rendering shown in the issue; done means shadows remain correct with multiple lights in the browser target.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.