Yes, I have the feeling this was suggested/discussed many times before, but I cannot find any specific thread regarding a feature request or development. In my understanding this is more possible now than ever before, so I'm re-posting the suggestion/request.
Very simply, dynamic lights with a limited cone of illumination. Suitable for flashlights, spotlights, headlamps, etc. These would use the same lighting models (standard or attenuated) and args (RGB + radius/intensity) as existing dynamic lights. An additional arg would be used for the spread of the beam, similar to a camera's FOV angle. The actor angle/pitch would be used to point the light (angle 0 being east and pitch 0 being horizontally level, of course). In the unlikely event masks/projectors/shapes are possible, those would use the actor roll of course. Otherwise perhaps roll could be re-purposed to define the spread or softness of the illumination cone.
From a couple discussions in Discord I get the impression this should be, while not trivial, certainly not impossible or extremely difficult and (in addition to global directional illumination) would fulfill another long-awaited lighting options for modders.
Dynamic conelights/spotlights
Moderator: GZDoom Developers
- Caligari87
- Admin
- Posts: 6174
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Dynamic conelights/spotlights
I'd be impressed if we could get texture applications to them. But something tells me that's not going to happen, since that whole system was only set up for legacy GL versions... something I'd love to see happen for the rest of the lights though. I still think that could be added on.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49066
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Dynamic conelights/spotlights
Major Cooke wrote:I'd be impressed if we could get texture applications to them.
What do you mean by 'texture applications'?
Re: Dynamic conelights/spotlights
Light cookie effects. Makes it look much more realistic. Like an actual flashlight.
The majority of the top results in this Google image search should be somewhat descriptive of the effect, since it's hard to put it into words:
https://www.google.com/search?q=light+c ... 80&bih=799
The majority of the top results in this Google image search should be somewhat descriptive of the effect, since it's hard to put it into words:
https://www.google.com/search?q=light+c ... 80&bih=799
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49066
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Dynamic conelights/spotlights
Maybe with Vulkan that is possible. For OpenGL it will probably not be possible because lights are not an additional render pass but done right in the main one, and with GL's texture binding scheme there's a limit here that would make the feature problematic.
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Dynamic conelights/spotlights
Yeah, that. Sorry. The name was really illusive to me, but it's what you did for GL2 compatibility.
Anyway, I take it the original suggestion also applies to the same restrictions?
Anyway, I take it the original suggestion also applies to the same restrictions?
- Caligari87
- Admin
- Posts: 6174
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: Dynamic conelights/spotlights
Leaving aside texture applications, what about simple illumination?
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Dynamic conelights/spotlights
Since I don't imagine the devs use the Moderator Control Panel, this thread got a Report:
Closing the Report and bumping the thread instead.This feature request can be marked [Added] it seems.