SAM3DBody-cpp open-sources a monocular multi-person 3D skeletal-reconstruction and BVH-export engine
SAM3DBody-cpp is an open-source C++ inference engine for Meta's SAM 3D Body technology. It can estimate multi-person 3D pose, finger joints, and body shape from images, video, or a camera, and export importable Blender BVH motion files for each person. The project also supports the MPEG Avatar Representation Format. The CUDA model package is about 5.2GB; CPU inference is slow, and occlusion, crossing people, and finger reconstruction may affect results.
SAM3DBody-cpp connects monocular multi-person motion reconstruction to BVH and Blender workflows while clearly listing limitations involving occlusion, finger detail, and CPU speed.
🎬 A single camera can now reconstruct multiple people as 3D skeletons, including their hands, and export the motion directly to BVH for Blender.
Meet SAM3DBody-cpp, an open-source C++ inference engine for Meta's SAM 3D Body technology.
Unlike the original Python-based research pipeline, this implementation is designed to run as a standalone C++ application.
And it produces animation data that can actually be imported into 3D software.
🧠 What does it reconstruct?
From an image, video, or webcam, the system can estimate:
▪️ 3D body pose.
▪️ Hand and finger articulation.
▪️ Camera-relative body translation.
▪️ Body shape parameters.
▪️ A full-body mesh.
▪️ 70 body and hand keypoints.
▪️ Separate skeletons for multiple people.
The generated body geometry contains approximately 18,439 vertices.
🎮 BVH export for animation
One of the most useful capabilities is multi-person BVH generation.
For each detected person, the application can export a separate motion file.
For example:
person_0.bvh
person_1.bvh
The pipeline also attempts to maintain character identity between frames through bounding-box tracking.
Bone lengths are adapted to the estimated proportions of each person.
The resulting animation can be imported into Blender or other tools supporting BVH.
🔬 What's under the hood?
The pipeline combines:
▪️ YOLO for detecting people.
▪️ DINOv3 for visual features.
▪️ An ONNX pose decoder.
▪️ ggml for lightweight prediction heads.
▪️ Native C++ linear blend skinning.
A refined-pose option performs additional passes over the hands and wrists to improve articulation.
📦 More than BVH
The project also supports exporting MPEG Avatar Representation Format containers.
Unlike BVH, these can contain a base avatar representation with mesh and skinning information alongside animation data.
💻 Hardware requirements
The standard CUDA model package is approximately 5.2GB.
A CPU-compatible model configuration is also available, but the developers warn that the large visual backbone is extremely slow without GPU acceleration.
On a modern CPU, a single backbone inference may take 5–15 seconds.
Linux supports live visualization.
Windows currently supports headless command-line processing and offline motion export, but not the same native live overlay viewer.
⚠️ Limitations
Multi-person tracking relies on relatively simple image-based association and may struggle with occlusions or people crossing paths.
Finger reconstruction can also require extra refinement.
The model and its dependencies retain their respective license restrictions.
Why is this useful?
For indie developers and animators, even imperfect monocular motion capture can provide a starting point for character animation.
Instead of manually blocking out every pose, you can reconstruct a movement from video and refine it inside Blender.
💻 github.com/AmmarkoV/SAM3DBody…
🤗 huggingface.co/AmmarkoV/SAM3D…
#MotionCapture #Blender3D #ComputerVision #OpenSource
Source: CuteGuy☣️ · x.com
