Dynamic Lights breaks after a long time...

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Dynamic Lights breaks after a long time...

Post by ibm5155 »

This bug makes the dynamic light to not affect walls/floors/ceilings after some time but not 3D models or sprites.
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
  }

Animated Fire

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

	}
}
The floating red ball that has iluminated most of the walls

Code: Select all

Actor Light_Room
{
  +NOGRAVITY
	-SOLID
  Radius 0
  Height 0
  RenderStyle Add
  Scale 0.165
  States
  {
	Spawn:
	FRED A -1
	Loop
  }
	
}
Ac
A short fire particle that has a small dynamic light on it

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
  }
}
And here're the gldefs

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 } }
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: Dynamic Lights breaks after a long time...

Post by ibm5155 »

Here's a testwad that the bug happened too.
http://www.mediafire.com/download/er802 ... htBUG3.zip

After some time (I think 4 minutes) the lights just disapeared, The freeze also happened to me, but, only when I turned off the dynamic lights (maybe because my fps when it was on was kinda low [30fps])
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Dynamic Lights breaks after a long time...

Post by Graf Zahl »

Please post your hardware specs as well, this might be driver related.
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: Dynamic Lights breaks after a long time...

Post by ibm5155 »

That's a nice point, I tested the same map with the integrated gpu, it was like 15fps, but I waited a half hour waiting the problem to happen but nothing, it neither had the 10 milisecond freeze each 3 seconds.

Here're the specs:
Windows 10 x64 edu
Intel Core I7 3635QM
Intel HD4000 10.18.10.4242
AMD HD8870m 2015.0821.2209.38003
8GB Ram

The numbers after the gpu model are the drivers version.
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Re: Dynamic Lights breaks after a long time...

Post by Rachael »

Have you tried both your Intel and AMD?

Try it on the Intel (you should be able to activate "Switchable" graphics) and see if the same problem still occurs.
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: Dynamic Lights breaks after a long time...

Post by ibm5155 »

So, that's what I'm trying to mean.
using the Intel gpu as the Gzdoom render, the dynamic lights Works just fine and there's no weird freeze ingame.
using the AMD gpu as the Gzdoom render, the dynamic lights will work for a time and then only objects will be "lighted", plus, there's some weird freeze ingame

Here's what happens in the demo map when the dynamic light stop working
Spoiler: Broke Light
blueinferno776
Posts: 26
Joined: Sat Aug 31, 2013 9:16

Re: Dynamic Lights breaks after a long time...

Post by blueinferno776 »

Im having the same problem.

http://i.imgur.com/ik5gftB.png

They work fine at first then only effect sprites suddenly, I get a short studder when the lights do this and when they go back to normal.

AMD A8 7410 with Radeon r5 graphics
+ Radeon r7 M360 2GB discreet graphics.

Happens to both of my gpus.
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: Dynamic Lights breaks after a long time...

Post by ibm5155 »

I tried to do the good and old bug hunting, but I couldn't figure out where could I find earlier builds than gzdoom-g2.1.pre-795-g6eb4e2a.7z.
For this is my testing
build name, crash, time to crash
gzdoom-g2.1.pre-1354-gad6ce5a - CRASH - 1:54
gzdoom-g2.1.pre-795-g6eb4e2a - crash - 02:08
gzdoom-2.0.05 - no crash

2.0.05 was the latest build that I found avaliable to download :S (It was in the News page from gzdoom) if there's a link with more builds, I'll give it a try)
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: Dynamic Lights breaks after a long time...

Post by ibm5155 »

Updated:
I'm going to describe step by step because that's the easiest way I figured out how to explain what I discovered.
runs gzdoom, dynamic lights are working fine.
5 - 10 minutes later, dynamic lights disapear from walls/ceilings, but it's still affecting objects...
10 minutes later, the dynamic lights goes back to life, and they now also affect everything...
and after some time, that same pattern repeats...
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Dynamic Lights breaks after a long time...

Post by Graf Zahl »

Since you posted in another thread that this apparently got fixed by a driver update I am closing this report.
ibm5155
Posts: 152
Joined: Tue Oct 25, 2011 13:05

Re: Dynamic Lights breaks after a long time...

Post by ibm5155 »

Yeah, it's working quite well
Image
(2,5k red torches)...

OFF: wow, you use nodes for dynamic lights O_O I didn't expect that kind of usage for nodes :O

Do other game engines also use nodes for lights?
Locked

Return to “Closed Bugs”