OpenGL bug with dynamic lights

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
kfpopeye2
Posts: 32
Joined: Mon Jul 17, 2017 6:30 pm

OpenGL bug with dynamic lights

Post by kfpopeye2 »

Not sure if this is a bug but...

I have the following object defined in GLDEF:

Code: Select all

object COLUMN_1
{
    frame COL1 {light LIGHT_COL1_1}
    frame COL1A {light LIGHT_COL1_2}
    frame COL1B {light LIGHT_COL1_3}
    frame COL1C {light LIGHT_COL1_4}
}
the lights are just simple point lights. Then I have the following states in the actor class:

Code: Select all

States
	{
		Spawn:
			COL1 A 1;
		IdleOn:
			COL1 ABC 1;
			Loop;
	}
The problem I have is the 3 frame bound lights are always flashing. I would have thought that 1 tic would be too fast to see the lights turn off but it isn't. Am I missing something?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenGL bug with dynamic lights

Post by Graf Zahl »

Please post a runnable example.
kfpopeye2
Posts: 32
Joined: Mon Jul 17, 2017 6:30 pm

Re: OpenGL bug with dynamic lights

Post by kfpopeye2 »

See attached PK3 for Doom2 map with column resources.
Attachments
columnTest.pk3
(3.33 KiB) Downloaded 25 times
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: OpenGL bug with dynamic lights

Post by Blue Shadow »

kfpopeye2 wrote:The problem I have is the 3 frame bound lights are always flashing. I would have thought that 1 tic would be too fast to see the lights turn off but it isn't. Am I missing something?
To me, at least, the effect you see is normal. Think about it for a bit: each of the three sides of the column is lit for 1 tic (~0.028571 seconds) and is unlit for 2 tics (~0.057142 seconds). That would create the light flickering effect you see, wouldn't it?
kfpopeye2
Posts: 32
Joined: Mon Jul 17, 2017 6:30 pm

Re: OpenGL bug with dynamic lights

Post by kfpopeye2 »

I'd think the flickering would be too fast for the human eye to see. I could be wrong though.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenGL bug with dynamic lights

Post by Graf Zahl »

What makes you think it's too fast to be seen? No, sorry, this behaves exactly like intended.
Post Reply

Return to “Closed Bugs [GZDoom]”