Half Pound Filter for Real-Time Animation Blending Riccardo Lasagno Abstract This paper introduces the Half Pound Filter (HPF) as a modification of the 1 Euro Filter (1EF) and algorithms for automatic data-driven tuning and for filter triggering based on motion derivative boundary checks. An application of the filter is presented in the context of human animation replay for real-time simulations, where switches in animation clips cause discontinuities that must be hidden by filtering the bone trajectory without introducing noticeable artifacts. The quality of the filtering will be compared with other common animation filtering techniques using an example case drawn from the LaFAN1 dataset, showing that the resulting animation is replayed with higher fidelity by evaluating the Mean Squared Error (MSE) and Normalized Power Spectrum Similarity (NPSS) for each setup. Performances will be evaluated using both a standard predetermined trigger point and blending distance and the automatic blending trigger and recovery system. 1 INTRODUCTION In real-time simulated environments, animation playback is usually controlled by a Finite State Machine (FSM) where each state plays an animation clip Epic Games Unity Technologies . Transitions between states cause discontinuities that have to be masked by generating in-between poses. This is often achieved by sampling both the old state animation clip pose and the new state animation clip pose and interpolating between them for a fixed amount of time. This is effective in many scenarios, but suffers from key limitations Bollo 2018 : 1. Blending is not context-aware and keeps interpolating regardless of pose proximity 2. Adding context adds significant complexity and performance overhead 3. Tuning interpolation is costly and scales poorly with FSM size and complexity 4. Blending requires to sample both animation clips 5. In networked systems, synchronizing the FSM over clients becomes complex and prone to artifacts These challenges lower animation fidelity, which is problematic given the high cost and artistic intent of authored assets. To avoid reliance on FSM, data-driven techniques like Motion Matching Clavet 2016 have been proposed, which lessen the problem by providing more closely matching pose stream, but still needs smoothing Lee et al. 2010 . A common workaround is to defer the blending to a post-process stage after the system determines the next animation state. The current industry standard for high-performance animation transitions is Inertialization, as presented by Bollo for Gears of War 4 Bollo 2017 . This technique achieves a performance gain by replacing traditional blending with an additive post-process that matches the new pose’s position and velocity while enforcing zero jerk via a fifth-order polynomial, with the transition duration as the sole tunable parameter. While widely adopted for its efficiency and quality, this approach can introduce over-smoothing artifacts when applied to valid, high-frequency movements and over-shooting when applied to fast changing motion. The 1EF is a simple, speed adaptive, model-free low-pass filter with a single parameter to tune, making it a suitable candidate for motion smoothing tasks Casiez et al. 2012 . HPF is derived from the 1EF, and we show that it is possible to introduce a completely automatic data-driven tuning procedure. By combining the proposed HPF filter with an automatic policy to detect and smooth discontinuities one can achieve high-fidelity animation replay without paying the cost of tuning cycles, making it scalable for real-world productions. The results are compared using Mean Square Error and Normalized Power Spectrum Similarity Gopalakrishnan et al. 2019 , using a sample generated using two animation joined from the LaFAN1 dataset Harvey et al. 2020 , to show that the HPF filter improve the quality of filtering without introducing meaningful frequency distortion. 2 RELATED WORK 2.1 Animation Blending in Real-Time Environments The foundation of real-time character animation rests on the ability to transition smoothly between motion clips. Early systems established the Animation Blend Tree as the standard hierarchical framework for motion synthesis Perlin 1995 . This approach utilizes nodes using linear interpolation to combine clips based on normalized weights. Rose et al. 1998 expanded this into a multi-dimensional parameter space with Verb-Adverbs, allowing for the interpolation of motions based on emotional or physical "adverbs" (e.g., walking happily vs. sadly). Motion Warping Witkin and Popović 1995 and Inverse Kinematic are used for steady-target in-betweening, where an animation is deformed to meet a static constraint, such as reaching for a fixed handle. To avoid complex state bookkeeping during transitions, Inertialization Bollo 2017 , a high-performance alternative to cross-fading that decays the difference between source and target states, was introduced and widely adopted. 2.2 Motion Matching and Data-Driven Techniques To manage large datasets without manual trees, Motion Graphs Kovar et al. 2023 automated the discovery of transition points. Recent research has shifted from graph structures toward Motion Matching Bülow et al. 2016 Clavet 2016 , a data-driven strategy that continuously selects the best frame from a large database based on the character’s current state and a predicted trajectory. To solve the memory and search overhead of this method, Learned Motion Matching Holden et al. 2020 uses neural networks to compress the database and speed up selection. Beyond matching, generative architectures like Phase-Functioned Neural Networks Holden et al. 2017 and Neural Animation Layering Starke et al. 2021 synthesize motion by learning the underlying manifold of human movement. Recent breakthroughs have introduced Diffusion-based models like AnyTop Gat and et al. 2025 , which enables motion synthesis across arbitrary character topologies, and Metric-Aligning Motion Matching Agata and Igarashi 2025 , which optimizes transitions for physical accuracy. 2.3 Digital filters for Motion Smoothing To eliminate high-frequency jitter or foot sliding, digital filters are often integrated into the animation pipeline. While the Butterworth filter is a staple for offline processing, real-time systems favor the 1€ Filter Casiez et al. 2012 due to its ability to adaptively balance jitter reduction with low latency. For robust state estimation, Kalman Filters (KF) are used to denoise joint positions by weighting kinematic predictions against observations Kirk et al. 2005 . Because joint rotations are non-linear, the Extended Kalman Filter (EKF) is employed to linearize these distributions Welch and Bishop 1995 Vlasic et al. 2007 . 3 FROM ONE EURO FILTER TO HALF POUND FILTER The 1EF is formulated as a digital RC low-pass filter where the cut frequency varies proportional to the magnitude of the smoothed velocity of the signal. By changing the calculation of the signal cutoff frequency to a linear interpolation from a minimum to a maximum frequency driven by the ratio of the absolute value of the time derivative of the signal with the maximum absolute value of the time derivative, we get the HPF. Algorithm 1 Half Pound Filter 1: Offline tuning parameters: f_{c,min},f_{c,max},\max{|\overset{\cdot}{x}|} 2: State variables: \hat{x}_{i-1} 3: Return: \hat{x}_{i} 4: procedure HPF ( x_{i},\Delta t ) 5: 6: if \mathrm{IsInvalid}\,\left(\hat{x}_{i-1}\right) then 7: \hat{x}_{i-1}\leftarrow x_{i} 8: return x_{i} 9: end if 10: 11: \overset{\cdot}{x}_{i}\leftarrow\tfrac{x_{i}-\hat{x}_{i-1}}{\Delta t} 12: \alpha_{f}\leftarrow\tfrac{|\overset{\cdot}{x}_{i}|}{\max{|\overset{\cdot}{x}|}} 13: \alpha_{f}\leftarrow\mathrm{clamp01}\,\left(\alpha_{f}\right) 14: f_{c}\leftarrow{\left(1-\alpha_{f}\right)}f_{c,min}\,\text{+}\,{\alpha_{f}}f_{c,max} 15: \alpha=\tfrac{1}{1\,\text{+}\,\tfrac{1}{2\pi f_{c}\Delta t}} 16: \hat{x}_{i}\leftarrow{\left(1-\alpha\right)}\hat{x}_{i-1}\,\text{+}\,{\alpha}x_{i} 17: \hat{x}_{i-1}\leftarrow\hat{x}_{i} 18: 19: return \hat{x}_{i} 20: 21: end procedure Figure 1 : The generated example signal and its derivatives. The signal was created by joining a run animation and a fall animation from the LaFAN1 dataset, and the Pitch Local Euler angle for the knee is used. The horizontal dashed lines are the upper and lower boundaries, while the vertical line shows where the two animations have been joined. notice that the only places where the boundaries are violated by acceleration and jerk match the joint frame. Note that the scope of the filter can be extended to higher derivatives by introducing additional frequency boundaries to smooth the derivatives. Since this would essentially stack two or more HPF on top of each other, these filters will be referred to as 1PF, 1.5PF, 2PF etc depending on how many successive derivatives of the signal are smoothed. The filter acts as an interpolation, so it would never overshoot the boundaries of the animation even in limit conditions, compared to Inertialization techniques that are prone to this kind of issues since they project the previous velocity to calculate the new pose. Bollo’s Inertialization overcome partially this issue by setting the projected velocity to zero if it would lead the projected value further away from the target value. 4 TUNING HPF FOR REAL-TIME ANIMATION BLENDING Character animation assets in video games are typically sampled at a frequency of 30 frames per second (fps). According to the Nyquist-Shannon sampling theorem, this sampling rate establishes a natural upper bound on the resolvable frequency content at 15 Hz. The majority of the power spectrum of natural human movement is known to be concentrated in the lower frequencies, typically below 5 Hz, meaning the 30 fps capture rate is generally sufficient to avoid aliasing. We can systematically analyze the kinetic content of the animation data by scanning either the entire library of motion clips or a consolidated, representative sequence (often referred to as a "dance card" clip). This analysis allows us to precisely quantify the maximum derivatives (velocity and acceleration) and dominant frequencies present in the authored movement. Using the slope-derivative relation for band-limited signals, we can get a conservative approximation for f_{c,min} as: f_{c,min}=\frac{\max{|\overset{\cdot}{x}|}}{2\pi\max{|x|}} We can then extract f_{c,max} by finding the frequency that contains 99.99% of the total power spectrum. As the initial frequency estimates may prove too conservative, resulting in excessive smoothing, an optional tuning gain can be applied to shift the filter’s working frequencies upward. This adjustment should be implemented cautiously to ensure the system’s effective frequency response remains strictly below the 15 Hz Nyquist frequency. At the start of the smoothing process, it is preferable to use a more conservative cutoff frequency to prevent the filtered signal from converging toward the target too quickly, which might introduce excessive jerk. In later stages, the primary objective shifts to ensuring that the signal aligns closely with the target in order to avoid end-of-interval jerk. This motivates progressively increasing the frequency bounds over the course of the smoothing procedure. We refer to this strategy as Gain Blend (GB). While using the HPF, the filtering behavior is dominated by the dynamics of the frequency shift. As a result, the method becomes less sensitive to small variations in the chosen frequency bounds, allowing the use of approximate values. In practice, for human motion data, it is reasonable to set f_{c,min}=1 Hz and f_{c,max}=5 Hz for all channels, and to linearly interpolate both values during the blend to 15 Hz. This yields a practical, ready-to-use filter that requires no tuning at all. In this paper, we refer to this configuration as GB-HPF. Figure 2 : Overview of the different filters applied to a noisy signal. The first row shows the resulting smoothing for different techniques applied in a fixed time window, while the second row show the same filters using the automatic trigger and recovery policy. Algorithm 2 Automatic Trigger and Recover with HPF 1: State variables: {x}_{i-1},\hat{x}_{i-1},\Delta t_{i-1},\hat{x}_{i-2},\Delta t_{i-2},\hat{x}_{i-3} 2: Return: \hat{x}_{i} 3: procedure AutoHPF ( x_{i},\Delta t,active_{i-1} ) 4: 5: if \mathrm{NotEnoughSamples} then 6: UpdateAutoHPFState ( x_{i},\Delta t_{i} ) 7: return x_{i} 8: end if 9: 10: v_{0}\leftarrow\left(x_{i}-\hat{x}_{i-1}\right)\text{/}\Delta t_{i} 11: v_{1}\leftarrow\left(\hat{x}_{i-1}-\hat{x}_{i-2}\right)\text{/}\Delta t_{i-1} 12: v_{2}\leftarrow\left(\hat{x}_{i-2}-\hat{x}_{i-3}\right)\text{/}\Delta t_{i-2} 13: a_{0}\leftarrow\left(v_{0}-v_{1}\right)\text{/}\Delta t_{i} 14: a_{1}\leftarrow\left(v_{1}-v_{2}\right)\text{/}\Delta t_{i-1} 15: j\leftarrow\left(a_{0}-a_{1}\right)\text{/}\Delta t_{i} 16: 17: active=\neg\mathrm{AreInRange}\left(x_{i},v_{0},a_{0},j\right) 18: 19: if \neg active\land active_{i-1} then 20: v_{0}^{t}\leftarrow\left(x_{i}-x_{i-1}\right)\text{/}\Delta t_{i} 21: a_{0}^{t}\leftarrow\left(v_{0}-v_{0}^{t}\right)\text{/}\Delta t_{i} 22: active=active\lor\left(a_{0}^{t}>a_{0,max}^{t}\right)\lor\left(a_{0}^{t}