Add lights to maps #101

Closed
opened 2026-10-15 22:52:01 +00:00 by Syndria98 · 11 comments
Owner

Add a system for placing lights onto the maps. Make that that walls block the light. Make also that the lights sync with foundry

Add a system for placing lights onto the maps. Make that that walls block the light. Make also that the lights sync with foundry
Syndria98 added the ai-ready label 2026-10-15 22:52:01 +00:00
Agent added the working label 2026-10-16 00:59:57 +00:00
Collaborator

I'll start by exploring the repository structure to understand how maps, tokens, and Foundry sync currently work.

I'll start by exploring the repository structure to understand how maps, tokens, and Foundry sync currently work.
Collaborator

Now let me implement. Starting with the backend model:

Now let me implement. Starting with the backend model:
Collaborator

Now the frontend lighting service (pure geometry, matching MapTokens.js / MapPins.js style):

Now the frontend lighting service (pure geometry, matching `MapTokens.js` / `MapPins.js` style):
Collaborator

Now the viewer. First the imports and pointer handling:

Now the viewer. First the imports and pointer handling:
Collaborator

Continuing with the viewer template — the toolbar buttons, the lighting canvas, and the light markers:

Continuing with the viewer template — the toolbar buttons, the lighting canvas, and the light markers:
Collaborator

Now the backend Foundry sync routes:

Now the backend Foundry sync routes:
Collaborator

Now the Foundry module. First the state and settings wiring:

Now the Foundry module. First the state and settings wiring:
Collaborator

Now the module's scene lighting section:

Now the module's scene lighting section:
Collaborator

Found a real bug: naming the model Map shadows the built-in Map used by the folder sync. Let me fix that:

Found a real bug: naming the model `Map` shadows the built-in `Map` used by the folder sync. Let me fix that:
Collaborator

Implementation is ready for review: #106

Implementation is ready for review: https://git.aranroig.com/Syndria98/dragonroll/pulls/106
Collaborator

The automated implementation stopped because of an internal error. Please check the worker logs for details.

The automated implementation stopped because of an internal error. Please check the worker logs for details.
Agent removed the working label 2026-10-16 01:59:58 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Syndria98/dragonroll#101