Dynamic conelights/spotlights

Remember, just because you request it, that doesn't mean you'll get it.

Moderators: Developers, ZDoom.org Team

Dynamic conelights/spotlights

Postby Caligari87 » Sat Aug 12, 2017 2:05 pm

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.

8-)
User avatar
Caligari87
I'm just here for the community
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: Dynamic conelights/spotlights

Postby Major Cooke » Sat Aug 12, 2017 5:32 pm

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.
User avatar
Major Cooke
Busiest college semester yet. On temporary hiatus.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: Dynamic conelights/spotlights

Postby Graf Zahl » Sun Aug 13, 2017 12:53 am

Major Cooke wrote:I'd be impressed if we could get texture applications to them.



What do you mean by 'texture applications'?
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Dynamic conelights/spotlights

Postby Rachael » Sun Aug 13, 2017 12:56 am

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
User avatar
Rachael
 
Joined: 13 Jan 2004

Re: Dynamic conelights/spotlights

Postby Graf Zahl » Sun Aug 13, 2017 1:16 am

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.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Dynamic conelights/spotlights

Postby Major Cooke » Sun Aug 13, 2017 9:01 am

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?
User avatar
Major Cooke
Busiest college semester yet. On temporary hiatus.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: Dynamic conelights/spotlights

Postby Caligari87 » Sun Aug 13, 2017 11:32 am

Leaving aside texture applications, what about simple illumination?

8-)
User avatar
Caligari87
I'm just here for the community
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest