More flags for Dynamic Lights

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8218
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town

More flags for Dynamic Lights

Post by Major Cooke »

I'm implementing better built models in my next mod that's soon to be announced, and I'd like to give them a dynamic light that doesn't light up the world, and in some cases, only affects the owner of the light itself. This way it can show off the different details without lighting up the world or other actors around it. But having a flag that affects actors without goemetry would be nice too.

EDIT:

Pull Request

- DontLightOthers: The inverse of DontLightSelf.
- DontLightMap: Doesn't light map terrain, but still allows for actors to be lit.
Last edited by Major Cooke on Sat Dec 19, 2020 11:59 am, edited 2 times in total.
User avatar
Caligari87
Admin
Posts: 6248
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: Actors/Owner Only flag for Dynamic Lights

Post by Caligari87 »

+1, this seems like a useful case. Models especially often require dynlights to look good, but adding too many can negatively affect level rendering performance. Seems that lights which only light the actor could save a lot of cycles if they don't need to link to level geometry.

Relatedly gonna signal-boost an old feature request of my own since it would fulfill both this use case (excluding all level geometry) and others (fake shadows, wall bleedthrough, un-light certain actors, etc).

8-)
User avatar
Marisa the Magician
Banned User
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: Actors/Owner Only flag for Dynamic Lights

Post by Marisa the Magician »

Hm, this kind of thing reminds me of the bSpecialLit flag UE1 had for stuff like this. Most of its uses were to have individual pieces of world geometry lit only by certain lights. It would be very useful for some effects, yeah.
User avatar
Major Cooke
Posts: 8218
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town

Re: Actors/Owner Only flag for Dynamic Lights

Post by Major Cooke »

Added a PR to the first post. It was surprisingly easy to implement.
User avatar
Major Cooke
Posts: 8218
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town

Re: Actors/Owner Only flag for Dynamic Lights

Post by Major Cooke »

Caligari87 wrote:Seems that lights which only light the actor could save a lot of cycles if they don't need to link to level geometry.
It still has to link to the map's light node list. Without that, it cannot light up actors at all, or appropriately clip behind level geometry. But the processing of lights skips any of the lights with DontLightMap so hopefully lights like these will have a greatly reduced impact.

Return to “Closed Feature Suggestions [GZDoom]”