[Not a bug] OpenGL bug with dynamic lights

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

OpenGL bug with dynamic lights

Postby kfpopeye2 » Thu Jul 22, 2021 11:12 pm

Not sure if this is a bug but...

I have the following object defined in GLDEF:

Code: Select allExpand view
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 allExpand view
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?
kfpopeye2
 
Joined: 17 Jul 2017

Re: OpenGL bug with dynamic lights

Postby Graf Zahl » Fri Jul 23, 2021 1:53 pm

Please post a runnable example.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: OpenGL bug with dynamic lights

Postby kfpopeye2 » Sat Jul 24, 2021 5:43 pm

See attached PK3 for Doom2 map with column resources.
You do not have the required permissions to view the files attached to this post.
kfpopeye2
 
Joined: 17 Jul 2017

Re: OpenGL bug with dynamic lights

Postby Blue Shadow » Sat Jul 24, 2021 8:02 pm

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?
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: OpenGL bug with dynamic lights

Postby kfpopeye2 » Sat Jul 24, 2021 10:31 pm

I'd think the flickering would be too fast for the human eye to see. I could be wrong though.
kfpopeye2
 
Joined: 17 Jul 2017

Re: OpenGL bug with dynamic lights

Postby Graf Zahl » Sun Jul 25, 2021 12:12 am

What makes you think it's too fast to be seen? No, sorry, this behaves exactly like intended.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest