Quote Originally Posted by Asmodeus View Post
Now if i decide to load a new animation in the shader, new matrices are being loaded in and the transition (expectedly) is not that smooth.
Here is what i was thinking.
- Use Animation 1
- Before swapping to animation 2 lerp(Anim1,Anim2)
Where Lerp will linearly interpolate the last N matrices of Anim1 and the first N animation matrices from Anim2.
While technically easy (try it!), the problem you end up with if you're not careful is implausible or impossible motion.

I think you'll save yourself a lot of time if you read Chapter 11 of Jason Gregory's Game Engine Architecture. Particularly the Animation Blending and Action State Machines sections.