Here are some pictures of the problem that I screenshoted
http://imgur.com/a/Fmc8I
On the first image you can see that the 3D model of the torch, a red ball and the player are being affected by the dynamic light, but not the wall.
On the second screenshot, It's the same thing, but now I disabled the dynamic lights.
And on the third screenshot, I restarted the map and I went to the same spot (so you can see the wall is now being iluminated)...
One note, this doesn't happen on zandronum 3.0, and also the mod running on gzdoom has a weird lag (it's like every 3 seconds, there's a 10 miliseconds freeze).
Here is the torch code, it's not something great, but I belive that each particle that is create is somehow affecting the dynamic lights, but that's my opinion
Code: Select all
actor TORCH 15129
{
Height 16
Radius 5
-SOLID
+NOGRAVITY
States
{
Spawn:
TNT1 A 1
3DDR N 1 A_PlaySound("SFX/TorchLoop", 6, 1, 1)
3DDR N 1 A_SpawnItem("Light_Room",16.0,-16.0,0,0)
3DDR N 1 A_SpawnItem("FireTorch",0,16.0,0,0)
goto "visible"
visible:
3DDR N 1 A_SpawnItemEx("RedEmber", Random(-5, 5), Random(-5, 5), 16+Random(12, 15), (0.001)*Random(10, 300), (0.001)*Random(10, 300), (0.001)*Random(2000, 4000), 0, 0, 172)
Loop
}
Code: Select all
Actor FireTorch
{
Scale 0.1
-SOLID
+NOGRAVITY
States{
Spawn:
TORC A 1 Bright
TORC B 1 Bright
TORC C 1 Bright
TORC D 1 Bright
TORC E 1 Bright
TORC F 1 Bright
TORC G 1 Bright
TORC H 1 Bright
TORC I 1 Bright
TORC J 1 Bright
TORC K 1 Bright
TORC L 1 Bright
TORC M 1 Bright
TORC N 1 Bright
TORC O 1 Bright
}
}
Code: Select all
Actor Light_Room
{
+NOGRAVITY
-SOLID
Radius 0
Height 0
RenderStyle Add
Scale 0.165
States
{
Spawn:
FRED A -1
Loop
}
}
Ac
Code: Select all
Actor RedEmber : VisualSpecialEffect
{
+NOGRAVITY
+NOINTERACTION
+NOBLOCKMAP
+NOTELEPORT
+ForceXYBillboard
+CLIENTSIDEONLY
+RANDOMIZE
Radius 0
Height 0
RenderStyle Add
Scale 0.065
States
{
Spawn:
FRED A 8 bright
Loopy:
FRED A 1 bright A_FadeOut(0.08)
Loop
}
}
Code: Select all
Pointlight SmallRedTorch
{
Color 0.8 0.2 0.0
Size 2
Offset 0 8 0
}
flickerlight2 Torch_Light
{
Color 0.8 0.2 0.0
Size 48
SecondarySize 38
interval 0.003
Offset 0 0 0
}
Object RedEmber { Frame FRED { Light SmallRedTorch } }
Object Light_Room { Frame FRED { Light Torch_Light } }