Page 1 of 1

Dynamic Lights Help.

Posted: Wed Jul 19, 2006 1:41
by TheGreatWhiteDope
I don't understand how to make dynamic lights, you can link me to a wiki or point me to the stickies but I still won't understand it. Can someone please either make an example WAD or in-depth describe how to use them? I'd prefer an example and I think that would also be easier on whoever (If anyone. :P) helps me. Thanks in advance.

Posted: Wed Jul 19, 2006 2:42
by Shinjanji
Demonstrates:

Static white light
Static colored light
Sector brightness relative light (Phased light sector)

Posted: Wed Jul 19, 2006 3:06
by TheGreatWhiteDope
Wow, that was incredibly easy, I feel stupid now.. :P Thanks for you help. xP

Posted: Wed Jul 19, 2006 16:06
by Boingo the Clown
Quick Question:

Do the dynamic lights in GZDooM make openGL cracks light up like they do in Legacy?

I hope not.

Posted: Wed Jul 19, 2006 16:35
by Graf Zahl
There are no cracks like in Legacy. They are the result of a cheap and imprecise algorithm to polygonize sectors. GL nodes work differenly.

But even if there were - no. GZDoom's light polygons are always the same as the walls.

Posted: Wed Jul 19, 2006 19:13
by TheGreatWhiteDope
Well, since it's about the topic of the thread, I figure I'll ask another question to bug you guys with. :P Is there any way that I can keep the light from going through walls? Like linedefs having a property "Block Light" or something.. That would be nice.

Posted: Wed Jul 19, 2006 21:14
by Graf Zahl
No. Doom's level data is insufficient to do proper light clipping. You'd need much more complex data structures to handle that properly.

Posted: Thu Jul 20, 2006 16:23
by Flame Spawn
Speaking of Dynamic Lights, for some reason, my Pulsing Lights don't work anymore. :?

Posted: Wed Jul 26, 2006 3:22
by jflkbob
Flame Spawn, is the angle set to 90?

Posted: Wed Jul 26, 2006 13:41
by Flame Spawn
Uh, no...why does it have to be set to 90? 0_o

Posted: Wed Jul 26, 2006 13:46
by jflkbob
i don't know why, but it works on 90. i think it has to do with the pulsing speed.

Posted: Wed Jul 26, 2006 14:36
by Flame Spawn
Alright, thanks. :)

[EDIT taken out]

Posted: Wed Jul 26, 2006 14:39
by jflkbob
any time :p

Posted: Thu Jul 27, 2006 11:52
by Hell_Best
add this in script

thing 9800 "Point Light"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity"
}

thing 9801 "Pulse Light"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Pulse time"
}

thing 9802 "Flicker Light"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Probability of Intensity 2"
}

thing 9803 "Sector Light"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Scale"
}

thing 9804 "Random Flicker Light"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Flicker interval"
}

thing 9810 "Point Light Additive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity"
}

thing 9811 "Pulse Light Additive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Pulse time"
}

thing 9812 "Flicker Light Additive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Probability of Intensity 2"
}

thing 9813 "Sector Light Additive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Scale"
}

thing 9814 "Random Flicker Light Additive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Flicker interval"
}

thing 9820 "Point Light Subtractive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity"
}

thing 9821 "Pulse Light Subtractive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Pulse time"
}

thing 9822 "Flicker Light Subtractive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Probability of Intensity 2"
}

thing 9823 "Sector Light Subtractive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Scale"
}

thing 9824 "Random Flicker Light Subtractive"
{
arg1 "Red"
arg2 "Green"
arg3 "Blue"
arg4 "Intensity 1"
arg5 "Intensity 2"
angle "Flicker interval"
}

Vavoom's light types can also be used but they work like regular dynamic lights.


thing 1502 "Vavoom static white light"
{
arg1 "Radius"
}

thing 1503 "Vavoom static colored light"
{
arg1 "Radius"
arg2 "Red"
arg3 "Green"
arg4 "Blue"
}