How to make lava [water]fall glow?

Ask about ACS, DECORATE, ZScript, or any other scripting questions 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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Lagi
Posts: 683
Joined: Sat Jun 23, 2018 12:51 pm
Location: Thou shalt alter thy beliefs with new evidence

How to make lava [water]fall glow?

Post by Lagi »

How can I make lava waterfall glow in darkness?


Also,

I would like the light from floor lava to increase the lighting in the room a little, as you see on above picture banks of lava river are pitch dark, and tips how to do that? Dynamic lights attach?

in GLDEF

Code: Select all

Glow
{
	Flats
	{
		FLATHUH1
		FLATHUH2
		FLATHUH3
		FLATHUH4
		FLTLAVA1
		FLTLAVA2
		FLTLAVA3
		FLTLAVA4
	} 
	Texture FLATHUH1, red, fullbright
	Texture FLATHUH2, red, fullbright
	Texture FLATHUH3, red, fullbright
	Texture FLATHUH4, red, fullbright
}
TheSeventh
Posts: 15
Joined: Wed Oct 24, 2018 9:04 am
Location: +NOGRAVY

Re: How to make lava [water]fall glow?

Post by TheSeventh »

You may have better luck just using dynamic lights close to the waterfall with an orange color. You could also add some to the floor lava to add a bit more glow in the rest of the room too. I would try a few PointLights with and intensity set to 125% of the width of the linedef of the lavafall/floor lava a few units in front of it. Then for the lavafall you can just add a few more at higher z offsets to light up the whole lavafall.
User avatar
Apeirogon
Posts: 1606
Joined: Mon Jun 12, 2017 12:57 am

Re: How to make lava [water]fall glow?

Post by Apeirogon »

Lagi wrote:I would like the light from floor lava to increase the lighting in the room a little, as you see on above picture banks of lava river are pitch dark, and tips how to do that? Dynamic lights attach?
In UDMF map format, in sectors properties, there are colors tab. There you can set various sector color properties, which would add a little color to the sector in form of lighting.
Alternatively, use a non solid 3d floor. Still require UDMF. Set it height to some value (so that it will fill target sector slightly) and then just set some color for a model sector to transfer its color to 3d floor.
User avatar
Lagi
Posts: 683
Joined: Sat Jun 23, 2018 12:51 pm
Location: Thou shalt alter thy beliefs with new evidence

Re: How to make lava [water]fall glow?

Post by Lagi »

thanks guys, but im not making a map.
User avatar
Officer D
Posts: 84
Joined: Fri May 10, 2019 8:19 am
Graphics Processor: nVidia with Vulkan support
Location: Florida
Contact:

Re: How to make lava [water]fall glow?

Post by Officer D »

You can increase the glow height in the GLDEF

e.g.: Texture FLATHUH1, red, 192, fullbright

As for attaching dynamic lights to textures, maybe take a look at FANCY WORLD and see how it attaches actors to defined textures. It uses actors to play sounds but I imagine you could have them spawn light actors too.
User avatar
Lagi
Posts: 683
Joined: Sat Jun 23, 2018 12:51 pm
Location: Thou shalt alter thy beliefs with new evidence

Re: How to make lava [water]fall glow?

Post by Lagi »

Thanks Officer, that helps,

yes there is some code with wall proximity checking in zscript, i am completely depleted after work, maybe later :D thanks for hint

Post Reply

Return to “Scripting”