toyxyz_RGBMocap README

The project's README from github.com/toyxyz/toyxyz_RGBMocap. As one markdown file: README.md.

RGB MoCap

RGB MoCap workspace showing video tracking and a 3D motion preview

A native Windows app that turns video into editable human animation. Review and export motion with AI processing running locally.

Sample videos

Motion capture

https://github.com/user-attachments/assets/b948dd8c-43b9-493a-9d7f-2fae0317695e

Download original sample

ViDiHand2 first-person motion capture

https://github.com/user-attachments/assets/df3928a9-fed5-4a81-9100-e1e31747a1a5

Download original sample

Character retargeting

https://github.com/user-attachments/assets/1759f1bf-a0d0-409f-84d8-dde9409cfe6f

Download original sample

Multi Cam MoCap

https://github.com/user-attachments/assets/4c0b290b-4a65-4287-8d22-c63c96b3d080

Download original sample

Streaming to Blender

https://github.com/user-attachments/assets/cc0e79bb-ecce-4752-ae14-3b6cea30c810

Download original sample

Unreal Engine MetaHuman live streaming

https://github.com/user-attachments/assets/3353f5ca-6393-40af-822f-210a77f51003

Install and run

The steps below cover Windows. For the experimental x86-64 Linux AppImage and source installation, follow the Linux support branch guide. The AppImage was tested on WSL 2. For experimental Apple Silicon setup and its supported workflows, follow the macOS support branch guide.

[!IMPORTANT] On Windows 11, Smart App Control in On mode may block the unsigned private Python runtime used by RGB MoCap. This can stop installation or launch. See Smart App Control troubleshooting.

  1. Install Git for Windows. Choose the setup option that makes Git available to Command Prompt and third-party programs. Open a new Command Prompt and confirm git --version works. Clone into a short, writable folder such as C:\RGBMoCap.

    git clone https://github.com/toyxyz/toyxyz_RGBMocap.git C:\RGBMoCap
    cd /d C:\RGBMoCap
    
  2. Prepare the runtimes for ExMR, FlowHMR and GVHMR with their supported add-ons, Blender, FFmpeg and native motion correction. AI weights and registered body files are downloaded separately in Model Manager:

    install.cmd
    
  3. Start the app:

    RGBMoCap.cmd
    

    Keep the console open while the app runs. Prepare the AI model files separately using Model Manager; some require account registration and manual download.

If setup fails with WinError 3 or WinError 206 and the error shows a long path, see Windows path length troubleshooting.

To update, close the app and run update.cmd from the same folder. See the installation guide for disk space, prerequisites and recovery. If you used PEAR in RGB MoCap, see real-time tracking and existing installations.

Updates reuse recently verified, unchanged runtimes. If MAMMA camera-alignment support preparation fails after the base installation succeeds, the base app remains usable. Rerun install.cmd to retry the unavailable support. See verification and repair.

Optional model runtimes

install.cmd prepares ExMR, FlowHMR, GVHMR and camera alignment support for MAMMA. Install the following only if you use them, after the base installation:

Model Separate setup command Installation and usage
MAMMA Setup_MAMMA.cmd MAMMA guide
PromptHMR Setup_PromptHMR.cmd PromptHMR guide
FastCam for PromptHMR (optional) Setup_FastCam.cmd or the option in PromptHMR setup FastCam setup and sample
GEM-X Setup_GEMX.cmd GEM-X guide
ViDiHand2 (experimental) Setup_ViDiHand2.cmd (requires Git, reuses FlowHMR) ViDiHand2 setup and troubleshooting

MAMMA and PromptHMR require Visual Studio 2022 C++ Build Tools, the Windows SDK and CUDA Toolkit 12.8 for local native builds. Close the app and review the provider terms before setup. Then reopen it and prepare the selected model's files in Model Manager. Their optional runtimes do not require each other; install.cmd and update.cmd do not install them.

GEM-X uses the existing ExMR Python base with its own pinned inference packages. Run its separate setup after install.cmd, then prepare its public files in Model Manager. It does not require the C++ build tools or CUDA Toolkit.

For optional text-prompt and click-guided Find person tracking on Windows, run Setup_SAM31.cmd after the base setup. Then choose SAM 3.1 next to Find person and use Auto Download on its 1.75 GB checkpoint row in Model Manager. SAM 3.1 uses more VRAM than Default tracking. Resource Mode > Automatic can offload tracking state and masks to system RAM when VRAM is tight and retry once after CUDA runs out of memory. See the SAM 3.1 tracker guide.

Track Face adds CPU face tracking for saved video. The 3D viewport shows facial landmarks on SMPL-X, SMPL-H and SOMA surfaces. Export Face saves ARKit-style coefficients alongside the chosen motion as TXT or Unreal Live Link Face CSV. Face preview landmarks and Unreal-streamed expression coefficients use One Euro smoothing automatically. Set Neutral beside Track Face calibrates the selected person from the current frame, with saved per-person baselines and Reset. Saved face coefficients can also accompany Unreal Live Link body streaming; enable Face in the separately installed RGB MoCap Connect plugin. See Face capture and face streaming.

Install with an AI agent

After cloning, open this repository folder in a local coding agent such as Codex. The agent guide covers setup, models, capture, retargeting, projects and resources. For example, ask:

Help me install and run RGB MoCap on this Windows PC.
Read AGENTS.md and docs/AGENT_GUIDE.md first. Check the GPU and free disk space,
run install.cmd, and launch RGBMoCap.cmd. Help me prepare the ExMR model files.
Preserve existing models, projects and settings, and keep the pinned runtimes.
Tell me when I need to sign in, accept provider terms or download a file manually.

For multi-camera capture, add:

Also enable MAMMA. Follow docs/MAMMA_AGENT_SETUP.md to check the C++/CUDA tools,
run Setup_MAMMA.cmd after the required license review, and verify the native CUDA
modules. Help me prepare its models without changing the other model runtimes.

For PromptHMR instead, add:

Also enable PromptHMR. Follow docs/models/PROMPTHMR.md and docs/AGENT_GUIDE.md.
Check the C++/CUDA tools, run Setup_PromptHMR.cmd after the required license
review, verify its CUDA checks, and help prepare the exact Model Manager files.
Keep other runtimes and existing projects unchanged.

MAMMA's agent setup guide and the PromptHMR guide include build checks and recovery. Provider login and license acceptance remain your responsibility; do not put passwords or account tokens in the agent chat.

For scripted reconstruction, export and streaming, see the command-line guide.

Features

How it works

  1. Select an AI model and prepare its files in Model Manager, then use File > Open Video. For MAMMA, select it before opening synchronized camera videos; thumbnails switch the preview and one timeline trim applies to all views.
  2. For ExMR, FlowHMR or GVHMR, optionally use Find person to select people. Choose Default or use SAM 3.1 for text prompts and click selection. PromptHMR tracks people together during reconstruction. MAMMA detects people during reconstruction; keep VGGT-Omega + GeoCalib (Automatic) and enter an approximate Reference Height (m), or import camera calibration. Click Reconstruct 3D.
  3. Review the motion. For models with Motion Correction, edit contacts if needed and click Apply Correction.
  4. Use File > Export... to choose a format supported by the source model, or import a character, retarget the motion and export it.

In Blender 5.0 or later, use the Toyxyz Blender Retargeter add-on to transfer exported RGB MoCap animation to another humanoid rig.

Supported AI models

In our subjective tests, PromptHMR could improve relative placement and interactions between multiple people in a single video, but its overall motion quality was lower than ExMR. It does not support finger tracking.

Model / original project Body representation Fingers Setup and use
ExMR SMPL-X Included ExMR guide
FlowHMR SMPL-H Included FlowHMR guide
GVHMR SMPL-X Optional HandFlow add-on GVHMR guide
MAMMA · multi-view motion capture SMPL-X Included MAMMA guide
PromptHMR SMPL-X Not generated PromptHMR guide
GEM-X · fast processing, relatively low motion quality in our tests SOMA Native77 Included GEM-X guide
ViDiHand2 · first-person capture Hands and camera-driven head, optional arms Included ViDiHand2 guide

Requires 64-bit Windows, a compatible NVIDIA GPU/driver and OpenGL 4.3. Model files are acquired separately; some require registration and license acceptance.

Installed models and runtimes: approximately 77.8 GB (72.5 GiB) for the six full-body workflows, including supported add-ons, Blender and FFmpeg, when the GEM-X CUDA files can be shared. Based on the measured inventory, excluding projects, caches or retained downloads; shared files are counted once. ViDiHand2 reuses the installed FlowHMR runtime. Its source and checkpoints are outside this inventory.

Configuration Runtime Models Total
ExMR + FlowHMR + GVHMR and supported add-ons 12.35 GiB 28.89 GiB 41.23 GiB
MAMMA additional files 6.11 GiB 3.53 GiB 9.65 GiB
PromptHMR additional files, Fixed Camera 6.22 GiB 6.13 GiB 12.34 GiB
GEM-X additional files, with CUDA sharing 2.13 GiB 7.11 GiB 9.24 GiB
Six full-body workflows 26.81 GiB 45.66 GiB 72.46 GiB

If GEM-X cannot share the verified CUDA DLLs, add about 2.95 GiB.

Optional PromptHMR moving-camera support adds approximately 18.6 MiB of native modules and 1.55 GiB of weights beyond these totals; see its model guide.

MAMMA, PromptHMR and GEM-X require separate runtime installation. Run Setup_MAMMA.cmd, Setup_PromptHMR.cmd or Setup_GEMX.cmd after install.cmd, as described above. They are not installed by install.cmd or update.cmd; obtain weights separately in Model Manager.

App source, C++/CUDA compiler tools, installation temporary files and saved work need additional space. These are measured sizes, not a setup free-space guarantee. See storage and installation details.

Cache and project cleanup: paths and deletion effects.

Resources and speed

Start with Resource Mode > Automatic. It uses the fast supported path when memory permits and falls back to a supported Low Memory path when needed. Memory-saving methods depend on the model; Low Memory can trade slower loading/transfers and more system RAM for lower VRAM use. See each model's guide for implemented options and limits. Resource Safety, below Resource Mode, defaults on. Turn it off to bypass low-RAM stopping and the VRAM allocator limit; Automatic batching and actual allocation-error handling stay active. See the Resource Safety details.

Short paired tests reduced peak allocated VRAM from 5.68 to 3.87 GiB for ExMR and 6.10 to 2.77 GiB for FlowHMR. Separate short-clip tests of connected processing phases cut worker time by 44% for ExMR and 24% for FlowHMR, with unchanged measured peak VRAM. These are different tests, not full-job speed guarantees. See resource modes, measured savings and acceleration for conditions, per-model results, direct-video preprocessing and output differences.

FlowHMR's Adaptive Batching selects 1–16 Fast SAM frames from available memory; Low Memory uses one. Warm feature tests took 16–23% less time at batch 16 than at batch 4, with peak allocated VRAM rising from 3.84 to 5.43 GiB. Whole-job gains can be smaller. Batch selection and OOM retry messages appear in Console and CMD.

Documentation

Original RGB MoCap code and documentation use the MIT License. Third-party components and model files retain their own licenses.

toyxyz_RGBMocap (toyxyz/toyxyz_RGBMocap)

video
Searching Database…

What is this?A native Windows app that turns ordinary video into editable 3D human animation, with the AI processing running on your own PC. You can review the motion, correct it, retarget it to characters and export it.
How do I get it running?Install Git for Windows, clone the repository into a writable folder, and run install.cmd to prepare the base runtimes. Then start the app and keep its console open. Model files are downloaded separately in Model Manager.
What do I need besides the app?Blender, FFmpeg and the native runtimes are set up by the installer. The AI weights are downloaded separately in Model Manager, and some of them require an account registration and license acceptance.
How much disk space do I need?About 68 GB for the five offline models with their add-ons, Blender and FFmpeg. Projects, caches and the C++/CUDA compiler tools for MAMMA and PromptHMR need extra space on top of that.
Does it work on macOS or Linux?No. It is built for 64-bit Windows only and is described as a native Windows app.
Does my video leave my computer?The README says the AI processing runs locally, so your video is processed on your own PC. Only the model files and dependencies are downloaded from their providers.
What can I export?You can export source animation as FBX or BVH, characters as FBX, and PMX character motion as VMD for MMD. You can also save portable Blender projects with the source animation, video and cameras.
Can an AI coding agent set it up for me?Yes. Open the cloned folder in a local coding agent such as Codex, and the agent guide covers setup, models, capture and retargeting. Keep passwords and account tokens out of the chat, since provider login and license acceptance stay your responsibility.
Does it reduce foot sliding?Yes. It has foot and palm contact correction with editable contact timings to reduce sliding in the reconstructed motion.
Can it track more than one person?Yes. It can reconstruct one or several people and preview their body meshes and animation bones. MAMMA also supports multi-camera capture.
Creator
toyxyz
Size
102.7 MB
Stars
4.2K
Age
1mo
Commits · 90 Days