gongpha / gdQmapbsp

A simple plugin that loads Quake's MAP/BSP files into Godot 4 interactively
MIT License
42 stars 5 forks source link

Feature request: Support switchable lights #6

Closed victorbstan closed 1 year ago

victorbstan commented 1 year ago

Hi, this is more of a feature request (towards parity with Quake 1 BSP) -- I notices that lightmaps are not affected by triggers that turn lights on and off... as in the three buttons on the ramp in E1M1. How difficult would it be to enable lights turning on and off to affect the lightmap? I believe this data is already baked into the BSP.

Screenshot 2023-06-19 at 7 39 06 PM
gongpha commented 1 year ago

I've been planning to implement switchable lights too. I think it's not too difficult to handle though. Just extend the max lightstyle from the current (12) to the official value (64) to include switchable light slots (32-62).

And also needs to rewrite some light logic . . .

gongpha commented 1 year ago

I made it ! You can try it at #7

victorbstan commented 1 year ago

Tested it, looks good to me! This is an awesome feature to have :)