arXiv:2610.30033cs.GROct 2026

Manuscript Offprint

arXiv:2610.30033

RLMuscle: Muscle-Driven Character Animation via Reinforcement Learning

Chunlei Li, Siyuan Yu, Yang Gao, Shuai Li, Peng Yu, Aimin Hao, He Wang

Chunlei Li ID^{ID}, Siyuan Yu ID^{ID}, Yang Gao ID^{ID}, Shuai Li ID^{ID}, Peng Yu ID^{ID}, Aimin Hao ID^{ID}, and He Wang ID^{ID}

Abstract—Body deformation caused by muscle contraction plays a vital role in the visual realism of character animation, yet in most 3D animation pipelines artists have to manually specify muscle activations, which is time-consuming and gives no guarantee of physical realism. To address this, we propose a new method in which a reinforcement learning (RL) controller discovers per-muscle activations that track reference motions without manual tuning. Existing RL muscle controllers stop at 1D muscles; we go one step further, keeping the 1D model inside the RL control loop as a fast surrogate, and using a 3D volumetric simulation to produce the final deformation. Because both stages share the very same constitutive law, the muscle deformation is produced by the same activations that generated the motion. We further add a measured electromyography (EMG) prior that steers the redundant activation solution toward real human muscle recruitment. To achieve stable, efficient, and realistic simulation, we propose a novel geometric multigrid for Extended Position-Based Dynamics (XPBD) that is built on a coarse tetrahedral cage with barycentric-coordinate prolongation and closes a V-cycle on tetrahedral meshes. Within this GPU-parallelized solver, we inject the same Hill-type force-length law as an energy-based fiber constraint that turns per-fiber activation into realistic muscle contraction and bulging. We demonstrate volumetric muscle simulation on a 194-muscle human body with a diverse set of motions (walk, kick, swim, overhead-squat, etc.), simulating the full-body model at 18ms per frame on a single RTX 4090. Our work takes a step toward character animation that is not only visually convincing but also biomechanically grounded. The website with code and videos is at https://chunleili.github.io/project-page-rlmuscle/.

Index Terms—Muscle simulation, XPBD, reinforcement learning, physics-based animation, character animation.

I. INTRODUCTION

IN animation, film, games, and virtual reality (VR), realistic muscle behavior is essential for believable character animation. Yet production pipelines still rely on hand-authored muscle activations, produced by one of two major authoring methods. The first is a tension line: the artist binds a line onto the skeleton, and the muscle associated with that line is activated once the line contracts below a set length threshold, so activation is triggered geometrically by bone motion. The second is keyframing: the artist directly animates each muscle's activation value over time as a keyframed curve. Both encode activations chosen for visual plausibility, not physical plausibility. Consequently, there is no guarantee that hand-crafted tension can produce physically valid motions, because artists effectively decouple muscle deformation from motion dynamics. This expertise-driven workflow is not only labor-intensive; it also cannot answer the question at the heart of physics-based animation: what muscle activations actually produce a given motion? This is the muscle inverse problem: recovering the hidden control signals from observed motion. A principled solution would replace hand-tuning with physically consistent activations derived from the target motion, so that the resulting muscle deformation reflects the underlying dynamics rather than a visually plausible guess.

On the other hand, recent works on muscle simulation driven by reinforcement learning (RL) [1]-[5] are mainly limited to a simplified 1D Hill-type muscle model, which falls short of the 3D volumetric muscle deformation needed for visual realism. The muscle inverse problem is challenging because the map from activation to joint motion is highly nonlinear, and the control space is high-dimensional (hundreds of muscles), which leads to intractability of analytical inversion, and extremely low sample efficiency in RL training.

We solve the muscle inverse problem by forward dynamics, i.e. searching for the activations that, once simulated, reproduce a target motion. This poses two challenges:

  1. Control. The map from muscle activation to joint motion is highly underdetermined and nonlinear, so analytical inversion is intractable, and naive RL exploration in this space is sample-inefficient.

  2. Physics. The numerical solver must handle volumetric muscle that is nonlinear, anisotropic, and nearly incompressible while remaining both stable and efficient.

We present the first system that addresses both challenges. Given a reference motion (motion capture or keyframed animation) and rest-pose 3D muscle/skeleton assets as input, it outputs a skeletal–muscular animation driven by physically consistent activations. Our work makes three technical contributions.

Technical contribution 1: a muscle-control pipeline that decouples 1D control from 3D simulation under a unified constitutive law for fibers, solving the muscle inverse problem and freeing artists from hand-tuning (addressing Control). Existing RL muscle controllers [1]-[5] actuate 1D Hill-type muscles only, so they recover joint motion but not the 3D volumetric deformation that visual realism demands; conversely, optimization-based methods [6] that place the volumetric solver inside the control loop are unstable and did not converge in our tests. We propose to use the 1D model as a surrogate in RL and to produce the deformation from the 3D model. To bridge the gap between the two, we

Chunlei Li, Yang Gao, Shuai Li, Peng Yu, and Aimin Hao are with Beihang University, Beijing, China.

Chunlei Li's primary affiliation is Beihang University, China. This work was carried out during his academic visit to University College London, UK. Siyuan Yu is with Westlake University, Hangzhou, China.

He Wang is with University College London, London, UK. He is the corresponding author (e-mail: realcrane@gmail.com).

Figure

Fig. 1. Automatically activated muscle-driven character animation for diverse motions: (a) walking, (b) kicking, (c) swimming, and (d) squatting. Blue intensity shows the activation level; different shades of red distinguish muscle tendons from muscle bellies.

introduce a new fiber constraint based on the Hill–Millard constitutive curve, which is used in both the 1D and the 3D model. Following MASS [1], a policy network and a muscle network are co-trained in a single PPO [7] loop against a motion-mimicking reward [8] on the 1D surrogate. The recovered activations then drive the 3D volumetric muscles through the same Hill-type constitutive law [9] used by the surrogate, in a single forward pass with the 3D solver kept out of the control loop, so the volumetric deformation is consistent with the dynamics that produced the motion, reproducing realistic muscle bulging, stiffening, and contraction rather than a visually plausible guess.

Technical contribution 2: a physiological electromyography (EMG) prior that steers the redundant activation solution toward measured human muscle recruitment (addressing Control). The activation-to-torque map is redundant, and existing muscle networks [1]–[5] reduce that redundancy from torque and effort alone, with nothing tying the result to a real recruitment pattern, so their activations drift away from measured human EMG. We propose to inject a measured surface EMG envelope [10] into the muscle-network loss, matched per synergist group and folded onto a common gait cycle, which pulls the recovered activations back toward the measured envelope ( §\SIV-B).

Technical contribution 3: a Petrov–Galerkin geometric multigrid for volumetric XPBD, integrated into a GPU-parallel framework that runs the full-body volumetric muscle model at 18 ms per frame on a single RTX 4090 (addressing Physics). Previous position-based hierarchies, such as HPBD [11], are formulated for cloth rather than tetrahedral meshes and never close a complete V-cycle, so they act only as a low-resolution driver; algebraic constructions [12] instead assemble a global matrix and thereby give up XPBD's local, per-constraint solve. We propose to coarsen a tetrahedral cage geometrically, prolongate by barycentric coordinates, and close a full V-cycle with a Petrov–Galerkin restriction, which keeps the high-stiffness solve stable and efficient. The framework further contributes muscle–bone collision handling based on a signed distance field (SDF).

References (41)