4.4.2 Torch-Light Shader issue

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.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: 4.4.2 Torch-Light Shader issue

Post by drfrag »

There were 5 batch files alone. No you don't need to pay and i don't even have a bank account right now, i had to close it becouse they multiplied commissions x5.
This looks like a mod bug now:
Phineas Bribberway wrote:there also has been a recent change in the GZDoom lights.
GZDoom 4.2.1 and later versions take the interval value literally.
4.2.0 and earlier versions used a larger value by an error.
Now the torches pulsate 10 times per second instead of once every second
before.
User avatar
ZDL_800
Posts: 448
Joined: Wed May 15, 2019 3:06 am

Re: 4.4.2 Torch-Light Shader issue

Post by ZDL_800 »

Thankyou very much for the replies.

That's it! You worked this out Defrag! It is indeed, the torches pulsates like x10, all I can describe is a strobe light effect.

I'm sure I can fix this now, the scripts need a - X10 value on all torches, so I believe its a simple division/10

Absolutely brilliant on the find!

Thanks again.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: 4.4.2 Torch-Light Shader issue

Post by drfrag »

No, Phineas Bribberway found it. And it's drfrag. :)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 4.4.2 Torch-Light Shader issue

Post by Graf Zahl »

Can you please post the offending code before I close this?
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: 4.4.2 Torch-Light Shader issue

Post by drfrag »

This?
Phineas Bribberway wrote:GLDEFS in mod's Brutal_Effects.pk3 has:

Code: Select all

pulselight WALLTORCH
{
color 1.0 0.3 0.0
size 49
secondarySize 60
interval 0.1
offset 0 82 0
}

object BrutalWallTorch
{
frame WTRH { light WALLTORCH }
}
User avatar
ZDL_800
Posts: 448
Joined: Wed May 15, 2019 3:06 am

Re: 4.4.2 Torch-Light Shader issue

Post by ZDL_800 »

Hello and please don't close this thread as we haven't 100% confirmed this bugfix yet.

So can I ask, are there any other light strings which are now x10?

Is it just the 'interval 0.1' which now needs to be 0.01?

Cannot expect users to know whats changed in GZDoom, its difficult to pinpoint the errors in the first place.

Also this bug been going off for over a year with no answer so do not close yet please.

Thanks again.
Last edited by ZDL_800 on Thu Jul 16, 2020 9:00 am, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 4.4.2 Torch-Light Shader issue

Post by Graf Zahl »

That's why I asked for sample code, I first need to check what goes wrong, but that requires a small and contained sample, not requiring to run all of Brutal Doom.
User avatar
ZDL_800
Posts: 448
Joined: Wed May 15, 2019 3:06 am

Re: 4.4.2 Torch-Light Shader issue

Post by ZDL_800 »

Hello Graf thanks for the reply.

I did try my best to cut down Diablo3D from 2GB, I failed many times breaking the game starting up.

The dev cut down a diagnostic version from 2GB to 280mb which now starts correctly, I'm so sorry that's theres still quite a few .pk3 files still.

Honestly the torches without fixing the shader would cause epilepsy.

I would like to say a big thankyou to the great Phineas Bribberway who discovered the error with the mods torches, you literally fixed Brutal Heretic and Diablo3D!

Thanks again.
User avatar
irontusk341
Posts: 566
Joined: Mon Oct 09, 2017 8:11 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Mister Rogers Neighborhood, Pennsylvania
Contact:

Re: 4.4.2 Torch-Light Shader issue

Post by irontusk341 »

Thank you all for all your help, i hope the 280mb helped pinpoint the issue, i tried stripping the mod down to bare essentials, just enough for it to run what it needs without breaking it. At least we know what seems to cause the strobing effect.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 4.4.2 Torch-Light Shader issue

Post by Graf Zahl »

It took a while for me to look up the change here but it surely was clearly broken code which for obvious reasons cannot be reinstated.
User avatar
ZDL_800
Posts: 448
Joined: Wed May 15, 2019 3:06 am

Re: 4.4.2 Torch-Light Shader issue

Post by ZDL_800 »

Thanks for the reply Graf.

I agree, just admittedly confused as to why the torches had the strobelight effect, its all fixed now, so thankyou for pointing us in the right direction.

So I basically fixed the torches from 0.1 to now 0.01.

But now found some other lights ie the candles which are 0.04, so I gather its now 0.004 but is this a valid parameter?

Thanks again.
User avatar
ZDL_800
Posts: 448
Joined: Wed May 15, 2019 3:06 am

Re: 4.4.2 Torch-Light Shader issue

Post by ZDL_800 »

Hello

Can you re-open this bug report because from our testing, its not fixed.

We cannot replicate the warping light shader anymore using Interval 0.001 even 0.0000001 which ever value all it does is stop the blinking strobelight effect on the torchs, they look like LED's now, there's no more natural flickering/warping of the fires light.

Are we missing a new parameter here? Isn't the Interval parameter the time at which the light fluctuates?

Please help as to how to replicate the settings back how 4.1.1 was.

Thankyou.
Post Reply

Return to “Closed Bugs [GZDoom]”