ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial4 min readDisconfirmAI Editorial

A Blender beginner's pipeline for extracting 3D dance motion from video, re-rendering with orbit cameras, and swapping in a character

Nishikawa Kazuhisa describes a four-step workflow that uses Meta's SAM 3D Body to estimate per-frame human mesh parameters from a dance video, smooths the output with a Butterworth filter, loads the result into Blender for free camera re-rendering, and replaces the gray placeholder with a realistic character via MiniMax H3's video-reference generation. He explains why the pipeline was rebuilt from GVHMR+SMPL-X to SAM 3D Body+MHR for commercial licensing, details the CUDA-to-MPS port on Apple Silicon, and notes practical limitations.

2026-11-24 05:07 GMT+8

Nishikawa Kazuhisa, a self-described Blender beginner who relied on the AI agent Muse for assistance, presents a pipeline that takes an ordinary dance video and produces a 3D re-render with a different camera angle. The core insight is that once motion is extracted into 3D mesh data, camera perspective becomes a free parameter: a frontal shot can be re-filmed from the side, from above, or with a 110-degree orbit, all after the fact.

The pipeline has four stages. First, prepare a dance video. Second, extract 3D motion frame by frame. Third, load the smoothed mesh into Blender and re-render with a new camera. Fourth, replace the gray placeholder model with a character using AI video generation.

The second stage is where the technical substance lies. Nishikawa initially used GVHMR for motion estimation and SMPL-X for the human body model. This combination produced good quality and even included a custom foot-contact correction, but both components carry restrictive licenses: GVHMR is research-only, and SMPL-X requires a separate commercial license through Meshcapade. The result was technically complete but legally unusable for published material.

He then switched to Meta's SAM 3D Body, which estimates a 3D human mesh from a single static image. The key licensing advantage: SAM 3D Body itself is available under the SAM License (commercial use permitted), and it outputs parameters for MHR (Momentum Human Rig), released under Apache 2.0. The model weights are distributed via Hugging Face and require an access approval request.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Running SAM 3D Body on macOS required porting the codebase from CUDA to MPS (Apple Silicon GPU). The modifications were narrow: three files, ten locations, mostly replacing device strings from "cuda" to "mps." A more subtle issue arose because MHR's computation uses 64-bit floating point, which MPS does not support. Nishikawa's workaround in mhr_head.py pins model loading to CPU at two points, transfers parameters to CPU during inference for the MHR calculation only, then returns vertices and skeleton to MPS. Since the MHR computation itself is lightweight, the speed penalty is minimal.

On a Mac, estimation ran at approximately 1.6 seconds per frame. The 243-frame video (about 10 seconds) completed in roughly 6 minutes, which Nishikawa considers practically usable without a dedicated GPU workstation.

Because SAM 3D Body is a per-frame estimator rather than a video-level one, the raw output exhibits jitter. Nishikawa applied a 5 Hz Butterworth low-pass filter to vertex trajectories, reducing jitter metrics to about one-quarter of the unfiltered level. The filtered mesh data is then converted from camera-space to world-space coordinates, with foot contact aligned to the ground plane, and loaded into Blender.

In Blender, the gray model can be rendered from any angle. Nishikawa chose a 110-degree orbit, automatically solving the shooting distance per frame from vertex spread to keep the full body in frame while varying between close and wide shots. The EEVEE engine rendered 243 frames in under one minute.

The final step uses MiniMax H3's video-reference generation (H3-Base-Ref2VA). The gray-model reference video and a character still image generated by MOSS-Image-Base are fed together; H3 replaces the placeholder with the character while preserving the dance motion and camera movement. Nishikawa notes that background can also be changed via prompt, producing a "street location" variant where the dancer appears in a shopping arcade rather than a studio.

Comparing the two pipeline versions, Nishikawa reports that Version 2 maintained pose alignment with the source video throughout the clip, whereas Version 1 showed increasing drift in later segments. He also notes that the older Mixamo-rig route had better foot-contact behavior in some cases, but overall naturalness of movement favored the new configuration. The decisive difference, he emphasizes, is licensing: what was technically possible before became publishable now.

Practical limitations remain. The source video should ideally have the person facing forward, stable in-frame position, and a fixed camera; moving cameras require separating camera motion from subject motion. Per-frame estimation can break down on fast movements or when limbs are occluded by the body. For longer clips where timing drift becomes a concern, Nishikawa suggests splitting into shorter segments and hard-cutting between them.

Sources

  • pc.watch.impress.co.jpPC Watch↗
Continue researching →