Dynamic conelights/spotlights

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Dynamic conelights/spotlights

Re: Dynamic conelights/spotlights

by wildweasel » Mon Jan 22, 2018 3:16 pm

Since I don't imagine the devs use the Moderator Control Panel, this thread got a Report:
This feature request can be marked [Added] it seems.
Closing the Report and bumping the thread instead.

Re: Dynamic conelights/spotlights

by Caligari87 » Sun Aug 13, 2017 10:32 am

Leaving aside texture applications, what about simple illumination?

8-)

Re: Dynamic conelights/spotlights

by Major Cooke » Sun Aug 13, 2017 8: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?

Re: Dynamic conelights/spotlights

by Graf Zahl » Sun Aug 13, 2017 12: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.

Re: Dynamic conelights/spotlights

by Rachael » Sat Aug 12, 2017 11:56 pm

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

Re: Dynamic conelights/spotlights

by Graf Zahl » Sat Aug 12, 2017 11:53 pm

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

by Major Cooke » Sat Aug 12, 2017 4: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.

Dynamic conelights/spotlights

by Caligari87 » Sat Aug 12, 2017 1: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-)

Top