BoneDry

Headless rigging, kinematics, and RL.

Closed-loop 4-bar XPBD, SDLS and FABRIK IK, CoR skinning, swept CCD, and a 3.9M steps/sec PufferLib C-ABI bridge in a 1.0 MB binary.

1.03 MB native 865 KB wasm 3.4 MB rss 283 tok mcp 3.90M RL steps/sec on CPU
60 fps real-time demo rendered by BoneDry --strict PASS
1.03 MB binary20.8 ms cold-start3.4 MB RSS3.90M RL steps/s
Blender 5.3 / bpy + PyBullet 953 MB · 824 ms · 5 quat flips
bpy.ops.object.armature_add()
# manual bone rolls, silent URDF loop drops
for f in range(60):
    bone.rotation_quaternion = solve_ik(f)
# 5 quaternion sign flips, 236 MB RSS
Silent closed-loop drops, quaternion flips, 33.3% Pass@1
BoneDry / BoneDry-Pipe
1.03 MB · 20.8 ms · 0 flips
load("gearbox.glb")
  | rig_from_parts(root="housing")
  | joint("drive", type="hinge", axis=(0,1,0), motor=2.0)
  | gear_couple("drive", "driven", ratio=2.0)
  | animate(duration=2.0, fps=30)
  | lint(strict=true, swept_ccd=true)
39.6x faster · 69x less RAM · 0 flips
Pure-Rust kinematics and RL telemetry Forma 4-DOF arm PPO blend + swept CCD
BoneDry Forma 4-DOF arm RL telemetry sheet
Biped RL env 3.90M steps/sec (CPU)
4-bar XPBD loop < 1.6e-5 m residual
MCP schema 283 o200k tokens
Swept CCD lint 0 flips · strict=PASS

Interactive Examples

Switch between runnable BoneDry-Pipe workflows.

BoneDry-Pipe: 2:1 Gearbox + CCD
load("gearbox.glb")
  | rig_from_parts(root="housing")
  | joint("drive", type="hinge", axis=(0, 1, 0), motor=2.0)
  | gear_couple("drive", "driven", ratio=2.0)
  | animate(duration=2.0, fps=30)
  | lint(strict=true, swept_ccd=true)
CLI Invocation
npx -y bonedry-3d eval --strict --out gear_8f.png --out gear.glb --out gear.urdf gearbox.bd
Outputs gear_8f.png (8-frame sheet) · gear.glb · gear.urdf
Verified 20.8 ms cold-start · 0 quaternion flips · exact Blow & Binstock inertia

Benchmarks

External Python oracle (bench/oracle.py) and 24-trial blind multi-model LLM ablation.

Incumbent BoneDry
Cold-start (2:1 gearbox + URDF)
824.4 ms (Blender) 20.8 ms native 39.6x faster
Peak RSS
235.9 MB (Blender) 3.4 MB native 69x less RAM
Mean cumulative LLM tokens
5,458 tok (Python/bpy) 608 tok (BoneDry-Pipe) 9.0x fewer
Blind LLM Pass@1 (24 trials)
33.3% (Python/bpy) 75.0% (BoneDry-Pipe) +41.7 pp
Median LLM execution time
697 ms 9.2 ms 75.5x faster
Metric Incumbent BoneDry Delta
Cold-start (2:1 gearbox + URDF) 824.4 ms (Blender) 20.8 ms native 39.6x faster
Peak RSS 235.9 MB (Blender) 3.4 MB native 69x less RAM
Mean cumulative LLM tokens 5,458 tok (Python/bpy) 608 tok (BoneDry-Pipe) 9.0x fewer
Blind LLM Pass@1 (24 trials) 33.3% (Python/bpy) 75.0% (BoneDry-Pipe) +41.7 pp
Median LLM execution time 697 ms 9.2 ms 75.5x faster

Architecture

Exports: .glb (skins + UCX_*) · .mjcf · .urdf · .usda · .puffer.py · UE5 / Godot / Unity

Closed-loop mechanics and IK

Exact Blow & Binstock inertia, Muller XPBD constraints (hinges, pistons, gears, tendons, 4-bar loops < 1.6e-5 m), plus Analytic, SDLS, and FABRIK IK.

CoR skinning and procedural motion

Geodesic Voxel Binding with Le & Hodgins CoR skinning, swing-twist baking, Holden critically damped springs, and Bollo quintic inertialization.

Swept CCD and track lint

Checks quaternion flips, loop seams, LDLJ jerk spikes, foot slide, skin collapse, and exact Rotational Conservative Advancement swept collisions.

PufferLib RL and policy blending

Compiles any BoneDry or Forma rig into a 1.0-3.9M SPS Rust RL environment and blends live PPO policies into procedural clips with zero pose pop.

Outputs

Rendered directly by BoneDry.