edrickhong / Cu

Game engine I am working on my free time
MIT License
2 stars 0 forks source link

Add blending of frame animations #6

Open edrickhong opened 6 years ago

edrickhong commented 6 years ago

Eg here: http://www.klemenlozar.com/frame-blending-with-motion-vectors/

Allows procedural generation of a frame of animation that is in between a two of animation frames. Works by reading the velocity map of a pixel and displacing the texture uv of the current pixel to effectively "move" that pixel along the trajectory of the pixel velocity.

edrickhong commented 6 years ago

Gonna try making a small animation of a square moving across a canvas and try blending that. If that works, we can tackle more complex effects.