Bevy MotionGfx is a motion graphics creation tool in Bevy. It is highly inspired by Motion Canvas & Manim.
Associated example here!
The goal of this tool is to procedurally generate animations with code. Below are some of the core design principles used in Bevy MotionGfx:
- Ease of use.
- Performance by default.
- Real-time preview.
- First class support for Bevy ECS.
- 2 way playback support.
- Robust (can be used not just for animation productions, but for all sorts of applications e.g. game development).
Procedurally coded animations can be easily scaled to larger projects (e.g. code can be reused/extended/structured).
-
Streamlining timeline editing with code-based animation. Reorganizing strips and keyframes, particularly when rearranging clips, can be a laborious endeavor. However, with coded animations, the process becomes remarkably efficient. Swapping sections in the timeline is as simple as shifting lines of code up and down, allowing for swift and hassle-free adjustments.
Here is an image (by aarthificial) comparing keyframes and code:
-
Seamless version control. With most of our assets represented as code or serialized values, we seamlessly integrate version control using Git!
-
Unleashing the full power of programming for animation. In animation, tasks such as handling repetitions, reusing common effects, and more become a breeze by harnessing programming concepts like loops and functions.
In addition to all of the above, Bevy MotionGfx also provides 2 way playback support. This means that the animations you created can be played in both forward and backward directions without any extra computational cost! This is a feature that is very lacking in other code-based animation libraries.
Bevy MotionGfx also comes with built-in easing functions which are crucial for animation creation.
Associated example here!
In Bevy MotionGfx, all vector graphics are rendered using Vello! This is done using the minimal Bevy Vello Renderer.
Associated example here!
Bevy MotionGfx also supports Typst! It comes with a compiler that compiles Typst content into Svg and display them using Vello.
Associated example here!
You can join us on the Voxell discord server or our project focused VOS (Voxell Open Source) discord server.
The bevy_motiongfx
is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.