Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

Pixelated high contrast map lighting.

Open mjstahlberg opened this issue 8 years ago • 12 comments

From https://github.com/Unvanquished/Unvanquished/issues/1010:

Screenshots:

unvanquished_2017-06-01_193056_000 unvanquished_2017-06-01_193102_000

Here's map where it happens (I needed to put pk3 in another zip to stop github from complaining):

map-tremtest_1.0.pk3.zip

For me this bug happens on 0.50. @illwieckz says that he has this bug on master.

Crossposting it here since it looks like a postprocessing issue to me.

mjstahlberg avatar Dec 12 '17 15:12 mjstahlberg

I still reproduce the bug on master.

illwieckz avatar Feb 01 '20 22:02 illwieckz

I believe this is fixed?

ghost avatar Dec 30 '21 23:12 ghost

I still reproduce it on Mesa radeonsi driver.

illwieckz avatar Dec 31 '21 00:12 illwieckz

could you update the root post to make it explicit which hardware you use? This seems to be important for that bug.

[edit] I added the GPU-Radeon tag

ghost avatar Dec 31 '21 00:12 ghost

I've been on Nvidia when I reported the issue.

mjstahlberg avatar Dec 31 '21 08:12 mjstahlberg

Interesting. I'd be surprised if only intel would not have it, so there must be something else causing the issue.

ghost avatar Dec 31 '21 13:12 ghost

Oh, nevermind! This hasn't happened to me; I just moved the issue here!

mjstahlberg avatar Dec 31 '21 13:12 mjstahlberg

We already have a GPU-AMD label so I replaced GPU-radeon with it (Radeon = AMD). I'm not sure this bug is Radeon-specific though.

To reproduce the bug, one should enable dynamic lighting (r_dynamicLight 1).

illwieckz avatar Jan 01 '22 04:01 illwieckz

The test map is a map done by @FreeSlave, who is known to use J.A.C.K. editor, which only supports a map format upstream NetRadiant doesn't support yet.

It means the map was compiled with tools we don't use ourselves, like @FreeSlave's own branch there: https://github.com/FreeSlave/GtkRadiant/tree/map220_netradiant

So it's also possible the map compiler that was used had a bug and the produced BSP file is buggy, but I don't know how to verify it.

illwieckz avatar Jan 01 '22 04:01 illwieckz

To my eyes this looks much more like an issue with our real time shadows though. Possibly a NaN/DBZ issue?

mjstahlberg avatar Jan 01 '22 09:01 mjstahlberg

Our tiled renderer does not support real time shadows yet (and no one is working on them). So it's very unlikely a bug is in real time shadow: they're expected to not be rendered at all.

The forward renderer which had real time shadow code (feature I never seen working correctly anyway) is now deprecated and disabled by default. See also:

  • https://github.com/DaemonEngine/Daemon/issues/236

illwieckz avatar Jan 02 '22 02:01 illwieckz

This looks like the same issue as the incorrect dynamic light in one of the basement rooms in https://users.unvanquished.net/~sweet/pkg/map-hq-beta28_0+0.dpk.

VReaperV avatar Aug 04 '24 09:08 VReaperV

Removing the AMD label because this is either an engine or map bug.

VReaperV avatar Oct 25 '24 08:10 VReaperV

Apparently this is indeed the same issue as on hq-beta28, and is caused by dynamic lights.

I've looked into it and apparently in both cases the lights have way too colours and large radius: hq-beta28: image While tremtest has 2 similar lights, but with radius 300

For comparison, dynamic lights produced by the pulse rifle have colour {1.49, 1.49, 1.49} and radius 25.

Here's how this looks on hq-beta28: image

VReaperV avatar Nov 03 '24 09:11 VReaperV

It apparently comes from here: https://github.com/Unvanquished/Unvanquished/blob/6b8fdb8f6030ce6a8266200855e2d2729178f521/src/cgame/cg_ents.cpp#L308.

VReaperV avatar Nov 03 '24 09:11 VReaperV

Fixed by https://github.com/Unvanquished/Unvanquished/pull/3184.

slipher avatar Jan 29 '25 15:01 slipher