Pixels of the weapon sprite being distorted during movement

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Pixels of the weapon sprite being distorted during movement

Postby Sinael » Sat Jul 21, 2018 9:06 pm

in GZDoom with texture filtering turned off, whenever a weapon sprite moves on screen its pixels become inconsistent in size, and instead constantly resize and realign, as if sprite image is being resampled differently every frame. This results in "wobbliness", "distortion waves" and other nasty effects. They are generally miniscule, but are far more noticable on larger sprites, however when you do notice it, you can not "unnotice it" again, kinda like "you are now aware you are breathing" thing (sorry by the way).

It is most noticeable in high resolutions (like 1600x900), but same effect happens at lower resolutions as well. Also much less pronounced in software, the slight "distortion wave" can still be seen.

I'm not sure how to explain it better, so here's some comparison videos. Videos have been taken from 1600x900 footage, cropped to the gun (BFG in this case) then doubled in resolution with integer scaling to make the matter more clearly visible.

This is how it looks in glBoom+ (no distortions): https://my.mixtape.moe/yljwuu.webm

This is GZDoom software mode (distortions most visible in the horizontal lines): https://my.mixtape.moe/bgirpo.webm

This is GZDoom OpenGL mode (distortions allover the place) https://my.mixtape.moe/spgehb.webm

This happens at any resolution.
User avatar
Sinael
Russian Ripman
 
Joined: 18 Oct 2011

Re: Pixels of the weapon sprite being distorted during movem

Postby _mental_ » Sun Jul 29, 2018 2:55 am

Links to videos are broken, got '404 Fire not found!' on all of them.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Pixels of the weapon sprite being distorted during movem

Postby wildweasel » Tue Jul 31, 2018 8:47 am

The links seem to work fine for me.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 16 Jul 2003

Re: Pixels of the weapon sprite being distorted during movem

Postby phantombeta » Fri Nov 01, 2019 9:49 am

Not a bug as far as I know. This is an unfortunate artifact of non-integer nearest-neighbour scaling and movement.
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Pixels of the weapon sprite being distorted during movem

Postby Enjay » Fri Nov 01, 2019 1:19 pm

_mental_ wrote:Links to videos are broken, got '404 Fire not found!' on all of them.

It could be because the website security certificate is expired. Firefox blocks it with a message saying as much.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland


Return to Bugs

Who is online

Users browsing this forum: No registered users and 30 guests