[4.3.1] Additive Shaded renderstyle for UDMF things bugged

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
User avatar
Jimmy
 
 
Posts: 4726
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

[4.3.1] Additive Shaded renderstyle for UDMF things bugged

Post by Jimmy »

Somewhere between 4.2.4 and 4.3.1 the way the Additive Shaded renderstyle was rendered was changed, and it doesn't look good.

See the following example:

- Load this test map (Heretic IWAD to get the textures to load).
- In 4.2.4, the cloud appears properly colored, and with the correct translucency alpha applied.
- In 4.3.1, the cloud's color is washed out and bright, and the translucency is incorrect.
- Notice that a colored sector fade makes the effect appear worse - almost palette-garbled.
fogtest.wad
(17.04 KiB) Downloaded 28 times
Screenshots of the test map and of the clouds in their proper context:

4.2.4:
Image
Image

4.3.1:
Image
Image
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3178
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: [4.3.1] Additive Shaded renderstyle for UDMF things bugg

Post by drfrag »

I've done some investigation and the first version affected is g4.3pre-358-g236b47693 (the second i've tried).
It's the same commit which introduced this bug: viewtopic.php?f=56&t=68042

Code: Select all

- change ProjectedWallTexcoords to use gradients for its texture coordinate calculations
- change SpriteDrawerArgs to draw a full sprite instead of one column at a time
- add r_noaccel cvar to allow forced software rendering of the psprites (useful for debugging and also one person on the forum actually requested this feature)
- remove FWallTmapVals and calculate texture coordinates directly from FWallCoords
- move portal clipping out of the inner sprite drawing loop
https://github.com/coelckers/gzdoom/com ... 96b7817952
Post Reply

Return to “Closed Bugs [GZDoom]”