Flickering dynamic lights + PBR get cut off at a distance

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Flickering dynamic lights + PBR get cut off at a distance

Re: Flickering dynamic lights + PBR get cut off at a distanc

by dpJudas » Wed Oct 17, 2018 12:44 am

It is, although it isn't so obvious to an outsider. The other bug happens because PBR surfaces are affected by lights far outside their radius.

The cutoff you see here is because the shadow maps may store depth values just outside the radius of a light if it doesn't hit anything in that direction. This won't be visible unless a light goes beyond its radius. Note that a a sad side-effect of fixing the original distance bug will be that you won't see PBR light reflections reach as far as they do on your original screenshot.

Re: Flickering dynamic lights + PBR get cut off at a distanc

by sylandro » Tue Oct 16, 2018 8:35 pm

Is it really? This particular instance of the bug only started appearing in version 3.6, whereas the topic you mentioned was created in April.

Re: Flickering dynamic lights + PBR get cut off at a distanc

by dpJudas » Thu Oct 11, 2018 11:16 pm

This is a duplicate of the other PBR light range bug. I really should fix this soon, I guess.

Flickering dynamic lights + PBR get cut off at a distance

by sylandro » Thu Oct 11, 2018 10:26 pm

When using PBR materials and placing a flickering dynamic light with a large secondarySize, the edge of the emitted light gets cut off when looking at it at a distance.

Disabling shadowmaps solves the issue. This did not happen in version 3.5.1.

For reference, this is the light definition:

Code: Select all

lightsizefactor 1.75

flickerlight BIGFIRE
{
	color 1.0 0.9 0.0
	size 52
	secondarySize 58
	chance 0.5
	offset 0 32 0
	attenuate 1
}
Steps to reproduce:
- Load the wad and enter map01
- Walk a few steps back and look to the left, to the light that is being emitted from the fire.
- The flickering bug should be visible at the edge of the light.
Attachments
litbug.pk3
(91.65 KiB) Downloaded 16 times
without_shadowmaps.jpg
with_shadowmaps.jpg

Top