Light Gradient in UDMF?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
SPZ1
Posts: 406
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Light Gradient in UDMF?

Post by SPZ1 »

Is there a way to create a vertical sector light gradient with UDMF? I've tried every option I can find and none are working.

Standard and Doom 64 style linedef brightnesses seem to not be for this purpose
Sector glow doesn't make a gradient
Sector fog fade only works if the player is inside the 3D floor boundaries
User avatar
Kappes Buur
 
 
Posts: 4231
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: Light Gradient in UDMF?

Post by Kappes Buur »

Something like this ??
Spoiler:
with floor/ceiling glow set to C0C0C0 at a a height just less than full height
Spoiler:
and the desired colour
You do not have the required permissions to view the files attached to this post.
User avatar
SPZ1
Posts: 406
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Light Gradient in UDMF?

Post by SPZ1 »

After looking at your example, I can see part of the problem is that the ceiling/floor glows aren't transferred over from 3D floors. The other problem is that dark colors in light sectors can't glow. There needs to be a subtractive glow feature.

I thought this tab looked kinda half empty anyways

subtractive glow.png
You do not have the required permissions to view the files attached to this post.
User avatar
Kappes Buur
 
 
Posts: 4231
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: Light Gradient in UDMF?

Post by Kappes Buur »

As far as I can tell, the gradient is also applied to 3D surfaces
(glow2)
Spoiler:
Or something like this if you do not want the glow on the surrounding sectors
(glow3)
Spoiler:
You may have to tweak the brightness levels and heights a bit to suit your liking
You do not have the required permissions to view the files attached to this post.
User avatar
SPZ1
Posts: 406
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Light Gradient in UDMF?

Post by SPZ1 »

I think you have it backwards

This is the control sector
Fade Control.jpg

And this is the target sector
Fade Transfer.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Kappes Buur
 
 
Posts: 4231
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: Light Gradient in UDMF?

Post by Kappes Buur »

SPZ1 wrote: Mon Jun 01, 2026 9:54 am I think you have it backwards
Maybe.

However, I supplied my example wads for a possible solution.
If you don't want to look at them, than the only other point
of further exploration is for you to supply a map of yours.

Your screenshots really do not give me clue of what you did.
User avatar
SPZ1
Posts: 406
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Light Gradient in UDMF?

Post by SPZ1 »

Kappes Buur wrote: Mon Jun 01, 2026 10:33 am
SPZ1 wrote: Mon Jun 01, 2026 9:54 am I think you have it backwards
the only other point
of further exploration is for you to supply a map of yours.
Fair enough. All I did was make a hole in the ground.
You do not have the required permissions to view the files attached to this post.
User avatar
Kappes Buur
 
 
Posts: 4231
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: Light Gradient in UDMF?

Post by Kappes Buur »

Do you realy need a 3D sector for the hole?

I tried 3 aproaches:
1. slices of 3D sectors
2. glow sectors
3. texture with a gradient color

1 is very fiddely and gives a banding appearance rather than smooth
2 would work if the gradient were reversed from light to dark

3 seems to be the best solution
make a gradient colored texture with paint.net of appropriate height and width
the sector brightness affects the result
then, maybe apply floor glow

for example
Spoiler:

Return to “Mapping”