1. Home
  2. Articles
  3. procedural animation

    Blender scripting: generating meshes from bones

    2021-06-02

    Introducing my first Blender script: a tool to generate low-poly meshes from armatures. The goal was to speed up the process of prototyping simple character rigs, and to learn more about Blender and Python. The results aren't aesthetically amazing, but the script provides a very quick starting point.

     

    This task proved challenging as most resources out there on Blender are now outdated, and I've found the API to be a little obtuse. Of course, as I experiment more, I'm sure it'll make more sense with time and practice. Here's the code if you want to try it out yourself:

    Continue reading...

    Frame-rate independent interpolation for Unity

    2021-05-28

    Back in 2002, Robert Penner published his book, Robert Penner's Programming Macromedia Flash MX. The book was significant in that it unveiled a set of stand-alone "easing functions" for simple animation. You've probably seen these easing functions, they've been ported to every language and websites like easings.net are dedicated to them. These functions make it simple for programmers to apply various eases to tween-based animation. By "tween-based" I'm referring to keyframe animation: interpolation between two fixed points in time.

    But what about animations that don't have a start time and an end time? Consider procedural animations that happen in a real-time environment, for example: "every frame ease a game object towards another game object". Those animations can't be keyframed; mathematically, we can't interpolate the in-between values (the 'tweens) if there is no definitive end to the animation.

    Continue reading...
    hidden