gitmyhub

AI4Animation

C++ ★ 8.8k updated 2mo ago

Bringing Characters to Life with Computer Brains in Unity

A multi-year research project from the University of Edinburgh that uses neural networks trained on motion capture data to create realistic real-time character animation for games and virtual environments, covering bipeds, quadrupeds, sports, and VR avatars.

C++PythonUnitysetup: hardcomplexity 5/5

This repository is a research project focused on making animated characters in games and virtual environments move more realistically using neural networks trained on motion capture data. The core idea is that instead of hand-animating every movement, you record real human or animal movement, train a neural network on that data, and then let the network drive the character's motion in real time based on player input or sensor data.

The project has been built up over several years and covers a wide range of character types and scenarios: two-legged human characters walking and running, four-legged animals with realistic gait transitions, characters interacting with objects in a scene, sports and fighting moves, and virtual reality avatars that mirror a person's real body movements using sparse sensor inputs. Each year typically adds new research published at SIGGRAPH, which is the top academic conference for computer graphics.

The older version of the project was built inside Unity, a popular game engine. A newer 2026 version called AI4AnimationPy moves the same ideas to Python, removing the Unity dependency so that training, running inference, and visualizing results can all happen in one environment using standard Python tools. That version includes demos you can run directly from a folder, covering biped locomotion, quadruped locomotion, inverse kinematics (automatically calculating how a character's joints should bend to reach a target), and a motion capture import tool that reads several common file formats.

The repository also includes published research papers, datasets, and pre-built demo applications for Windows, Mac, and VR. If you want to try the work without setting anything up, there are web demos hosted online.

This is academic research code from the University of Edinburgh and collaborators including Meta. It is primarily intended for researchers and developers working on character animation or game AI. People without a background in machine learning or game development will find the code difficult to work with directly, but the video demos and web demos are accessible to anyone curious about what AI-driven character animation looks like in practice.

Where it fits