Weapon interpolation
Moderator: GZDoom Developers
Weapon interpolation
Link to the pull request here.
For comparison, I made webms: [with interpolation] and [without interpolation].
For comparison, I made webms: [with interpolation] and [without interpolation].
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Weapon interpolation
Even as someone who can't stand capped framerate, I'm having a hard time seeing the difference.
Re: Weapon interpolation
Really? It is SO obvious to me, even with just the webms which are of poor quality.
Perhaps if you try it yourself?
Perhaps if you try it yourself?
Re: Weapon interpolation
It is very juttery without.
- Xeotroid
- Posts: 448
- Joined: Sat Jun 23, 2012 7:44 am
- Graphics Processor: nVidia with Vulkan support
- Location: Czech Rep.
Re: Weapon interpolation
It's not really visible in the videos, but holy cow, it really is much smoother in-game. I really like this.
- xenoxols
- Posts: 2134
- Joined: Mon Mar 18, 2013 6:08 pm
- Preferred Pronouns: She/Her
- Location: Behind you
Re: Weapon interpolation
This seems like a really good idea.
Re: Weapon interpolation
Oh shit yes. This is my favorite damned thing about PrBoom and the like -- it's indeed smooth as fuck, and being able to use it with the new bob styles is gonna rock. 

- Ed the Bat
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
- Contact:
Re: Weapon interpolation
If only this kind of smoothness could be applied to monster movement. Though I know that's another beast entirely.
- BouncyTEM
- Posts: 3822
- Joined: Sun Aug 24, 2003 5:42 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)
Re: Weapon interpolation
This is fantastic. Utterly, utterly fantastic.
I tried this in doom, hexen, WW-Terror, Russian Overkill, and, just, aaaaaaa
What a world of difference.
I tried this in doom, hexen, WW-Terror, Russian Overkill, and, just, aaaaaaa
What a world of difference.
Re: Weapon interpolation
Just curious, will this cause any compatibility issues? I'm not a coder so I've no idea! 

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Weapon interpolation
No, this is entirely on the visual side of things.
- Ed the Bat
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
- Contact:
Re: Weapon interpolation
And that's the crux of why this couldn't also be applied to other things in the game world itself, like monster movement, right? Because that'd be more than just visual changes?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Weapon interpolation
Monster movement is a problem because it's not continuous. The way monsters move and movement interpolation do not work well together. For that you also need some continuous or interpolatable animations, like models have. But with the existing sprites there's no change to make it look good.
- Ed the Bat
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
- Contact:
Re: Weapon interpolation
Hm, because I've made custom monsters with smoother movements, by reducing their Speed property and changing their frames like so:...would become:and the smoothness makes me so much happier. I can't go back to the old way; it looks so choppy and ugly to me...
However, the obvious drawbacks to my method are:
1) game world logic is technically changed, since monsters are making more AI calculations than before
2) monsters tend to spaz out in tight spaces because they're able to change directions more frequently than before
3) having lower Speed properties, monsters can sometimes be stuck by walls that are close to them, when a vanilla monster would've been able to break free
So my method is clearly not perfect, even for my needs.
Code: Select all
POSS A 4 A_Chase
Code: Select all
POSS A 1 A_Chase
POSS AAA 1 A_Chase("","",CHF_NOPLAYACTIVE)//to prevent the monster from becoming more aggressive
However, the obvious drawbacks to my method are:
1) game world logic is technically changed, since monsters are making more AI calculations than before
2) monsters tend to spaz out in tight spaces because they're able to change directions more frequently than before
3) having lower Speed properties, monsters can sometimes be stuck by walls that are close to them, when a vanilla monster would've been able to break free
So my method is clearly not perfect, even for my needs.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Weapon interpolation
It still doesn't change the biggest issue here: lack of intermediate animation frames, resulting in some 'gliding' movement.