u/JEOgilvie

▲ 14 r/raylib

I have been converting my Unity game to Raylib C++ and found that there were two things I sorely needed: animation rigging and animation blending. This video shows 2d animation blending, mixing three animations at a time.

I wrote a system that takes a series of 2d nodes in blend space, converts them to triangles (using Delaunay Triangulation) and then does a lookup every frame using barycentric coordinates to work out which animations to blend together. Raylib needed some extending to support three-way animation blending but that was relatively straightforward.

All the animations were retargeted from other models using a rigger/retargetter that I also built with Raylib.

TLDR: I’m loving working with this library! If you need a tool then you can just write it and if you need any additional functionality you can just add it. There is very little in your way; development is super fast.

u/JEOgilvie — 21 days ago