(Bi/tri)linear texture filter causes translucent weap bottom

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: (Bi/tri)linear texture filter causes translucent weap bottom

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Zodomaniac » Sun Nov 18, 2018 10:37 am

Graf Zahl wrote:All that won't help. The effect comes from adding a transparent outline to sprites to improve texture filtering around their edges. In this case it simply boils down to guesswork to alter this because the texture manager cannot know which edge of a sprite will be aligned to the screen when it gets rendered. It's either completely on or completely off.
Is there an option of disabling this transparent outline of sprites?

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Graf Zahl » Sun Nov 18, 2018 2:32 am

All that won't help. The effect comes from adding a transparent outline to sprites to improve texture filtering around their edges. In this case it simply boils down to guesswork to alter this because the texture manager cannot know which edge of a sprite will be aligned to the screen when it gets rendered. It's either completely on or completely off.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Zodomaniac » Sun Nov 18, 2018 2:03 am

Maybe it would make sense to extrapolate the bottom pixel line to the out-of-screen area, so that the texture filter mixes just identical pixels of the bottom line?
Or render the mirrored weapon sprite below the screen for same effect.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Enjay » Wed Nov 14, 2018 2:01 pm

Pretty sure I remember that original issue and the fix being implemented. If I'm right, it was indeed a very long time ago.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by drfrag » Wed Nov 14, 2018 1:37 pm

As far as i knew that WEAPON_FUDGE_Y thing was only in software. I also think this could be resolution-specific.
That mod is too big for me to download. I wonder if this could be a driver problem.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Zodomaniac » Wed Nov 14, 2018 11:28 am

Maybe your change eliminated the pixel gap with disabled texture filter? Because it appears only with texture filter enabled.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Graf Zahl » Wed Nov 14, 2018 11:13 am

Very long ago. A few years ago there even was a user who was bothered so much by it that he threatened to switch to other ports

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Zodomaniac » Wed Nov 14, 2018 9:46 am

At which point have you made this shift 1 pixel down? I've just discovered GZDoom current version is 3.6.0 while I'm using 3.5.1.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Guest » Wed Nov 14, 2018 9:42 am

Those are the original, IWAD weapon sprites, the screen resolution is 1920x1080 fullscreen.
Graf, where have you introduced this 1 pixel downshift? I'm still using the 3.5.1 release, maybe that's why.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Graf Zahl » Wed Nov 14, 2018 9:29 am

That shouldn't be. I already shift this down by one pixel to avoid artifacts. That's why I was asking. This may also be screen resolution dependent.

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Chris » Wed Nov 14, 2018 8:31 am

Perhaps the weapon sprite is rendered using wrapping UV mode, so it's blending the bottom texels with the transparent top and getting killed by alpha-testing?

Re: (Bi/tri)linear texture filter causes translucent weap bo

by Graf Zahl » Wed Nov 14, 2018 8:19 am

Is this the original weapon sprites or some modifications that are not easily recognizable on a screenshot?

(Bi/tri)linear texture filter causes translucent weap bottom

by Zodomaniac » Wed Nov 14, 2018 6:20 am

(Bi/tri)linear texture filter treats the bottom pixel line of weapon sprite as transparent, though graphic editors reveal that it is not, and this doesn't happen without texture filtering.
So one has to play either with no texture filtering and jagged graphics, or cope with bright environment graphics and effects flashing through the weapon.
The screens were made when standing on pentagrams in Doom Slayer Chronicles https://www.moddb.com/mods/doom-slayer-chronicles
Attachments
SSG translucent bottom line.png
SSG translucent bottom line.png (208.68 KiB) Viewed 508 times
SG translucent bottom line.png

Top