[Filtering problem] What is wrong with this sprite?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
grahf78
Posts: 24
Joined: Sun Jun 21, 2020 10:11 pm
Graphics Processor: nVidia (Modern GZDoom)

[Filtering problem] What is wrong with this sprite?

Post by grahf78 »

I've run into a strange issue with how a sprite looks when using the built-in bilinear/trilinear filtering.

This is a soulsphere with two frames. Unfiltered, frames A and B look and animate perfectly. However, when filtering is turned on, the second frame looks really blurry, making the animation look very bad. I don't know what could be causing this. Any help would be appreciated!



I've also attached a small pk3 where you can do the comparison ingame.
Attachments
TestFilter.pk3
(2.87 KiB) Downloaded 28 times
User avatar
Enjay
 
 
Posts: 27281
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: [Filtering problem] What is wrong with this sprite?

Post by Enjay »

Well, I'm not sure why it had such a big impact, but SOULB0 has some translucent pixels around the edge. Flattening the image and cleaning up those pixels seems to have solved it.

If you load the attached file on top of your test PK3, the blurriness has gone.

I also trimmed the sprites closer to the image (mostly because it was the first thing that I tried) and then reset the offsets so that the sprite position matched what you had with your ones.
Attachments
TestFix.pk3
(2.21 KiB) Downloaded 26 times
grahf78
Posts: 24
Joined: Sun Jun 21, 2020 10:11 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: [Filtering problem] What is wrong with this sprite?

Post by grahf78 »

Thanks for answering! I also thought it was due to the image size, which left me more stumped. Cleaning those almost imperceptible transparent pixels did it.
Post Reply

Return to “Assets (and other stuff)”