Subtractive glow colors

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Subtractive glow colors

Post by Major Cooke »

Much like subtractive dynamic lights, subtractive glows would behave inverse of regular glows. Currently there's no way to do this but it would be nice to have a controllable height because right now, the only way to do this is by using Doom64 lighting - but you can't control how high it goes.
User avatar
Tormentor667
Posts: 13548
Joined: Wed Jul 16, 2003 3:52 am

Re: Subtractive glow colors

Post by Tormentor667 »

I agree, that would have been useful a number of times.
User avatar
Rachael
Posts: 13737
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Subtractive glow colors

Post by Rachael »

I really really hate how subtractive lights work, especially with the way it tries to flip the hue in order to make it match the original light color (incorrectly, even).

If this is implemented I would prefer a multiplicative glow (0.0-1.0) instead. The hue does not need to be reversed for that.
User avatar
Chris
Posts: 2950
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Subtractive glow colors

Post by Chris »

Rachael wrote:If this is implemented I would prefer a multiplicative glow (0.0-1.0) instead. The hue does not need to be reversed for that.
Depending on the desired effect, that may not be a suitable alternative. If you want to create something that takes away a fixed amount of light, in a similar way to how a normal light adds a fixed amount of light, a 0-1 multiplier won't work as it would take away an amount of light dependent on the light already there. It would also be subject to ordering issues, since applying a multiplicative light after all other lights will be different than if it's applied after sector lighting but before dynamic point- and spot-lights; different people could want different behaviors for different purposes (e.g. faux light occlusion should only affect static map lighting, not dynamic lights that may point directly at it, while something like a black hole or bottomless pit may want to absorb all light regardless of source).
Gez
 
 
Posts: 17924
Joined: Fri Jul 06, 2007 3:22 pm

Re: Subtractive glow colors

Post by Gez »

I don't think there could possibly be a realistic model of negative light. I doubt wave cancellation would work with light waves like it works with sound waves, since it'd just result in twice as many photons.
User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Subtractive glow colors

Post by Major Cooke »

Chris wrote:while something like a black hole or bottomless pit may want to absorb all light regardless of source).
This is exactly what I would want.

Honestly, I'm thinking of giving this a try and just seeing how its done with dynamic lights first, and see if I can at least get it working before considering other things. However I have no idea on how to do it Rachael's way in particular, as I'm not at all familiar with how lights and such work currently so I'll have to do a lot of digging for this.
User avatar
Rachael
Posts: 13737
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Subtractive glow colors

Post by Rachael »

It'll look bad, just as subtractive lights already do. Light simply does not "subtract", period. If anything, shadows will make it fade, instead, which is handled multiplicatively.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49143
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Subtractive glow colors

Post by Graf Zahl »

And yet another specialty effect with no realistic use cases would be added.
Sorry, I'm done with this. There's already so much baggage in the engine I'd rather get rid of that I won't consider adding more of this.
User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Subtractive glow colors

Post by Major Cooke »

Using negatives lights it is then.
User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Subtractive glow colors

Post by Major Cooke »

Graf Zahl wrote: Sun Jul 04, 2021 2:08 am And yet another specialty effect with no realistic use cases would be added.
Sorry, I'm done with this. There's already so much baggage in the engine I'd rather get rid of that I won't consider adding more of this.
Coming back to this, I need this for deep chasms to appear endless and to fade out the walls. An example would be these pits. Trying to develop a gradient that only goes up a third of the way has proven to be unbelievably difficult that requires the use of "Transfer Brightness" specials that add needless tedium and complexity when a simple subtractive glow would work.
Professor Hastig
Posts: 248
Joined: Mon Jan 09, 2023 2:02 am
Graphics Processor: nVidia (Modern GZDoom)

Re: Subtractive glow colors

Post by Professor Hastig »

What you really want here is not a glow but a gradient of the light level.

I tend to agree with all the previous posts that subtractive glows are not a good idea.
User avatar
Nash
 
 
Posts: 17456
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Subtractive glow colors

Post by Nash »

Just stack multiple black 3D floors with increasing opacity. :mrgreen:

vOLumETriC liGhtINg
User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Subtractive glow colors

Post by Major Cooke »

I'm already doing that.

But then I came up with a much better idea...
User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Subtractive glow colors

Post by Major Cooke »

Okay nevermind then, that idea was nixed.
Nash wrote: Mon Nov 06, 2023 5:12 am Just stack multiple black 3D floors with increasing opacity. :mrgreen:

vOLumETriC liGhtINg
Well in a way I'm already doing that. I've a bunch of "ExtraFloor_LightOnly" things that gradually light up more and more the higher it goes since it's technically cheaper while the main sector itself has 0 brightness.

Hastig, how would this be done? Right now, there is no way to do this except with sticking a glowing flat on a floor/ceiling but that's not doable with 3D floors.

Return to “Closed Feature Suggestions [GZDoom]”