Real-time 3D motion generation from text prompts — bridging NLP to skeletal animation
# Clone repository git clone https://github.com/ruiflow-team/ruiflow_motion.git cd ruiflow_motion # Install dependencies (Python 3.9+) pip install torch transformers scipy numpy # Verify installation python3 -c "import torch; print(f'PyTorch {torch.__version__} ready')"
# Generate motion from text prompt (outputs 7-joint, 14-frame numerical angles) python3 tools/qao/ruiflow_v20_real_motion_pipeline.py --prompt "亢龙有悔" # Generate + export to GLB for Blender/Unity/Unreal python3 tools/qao/ruiflow_v20_real_motion_pipeline.py --prompt "太极拳" --output taiji.glb # Launch WebGL 3D preview python3 -m http.server 8080 --directory webgl-preview
| Component | Spec |
|---|---|
| Joints | 7-joint kinematic chain |
| Frames | 14 frames @ 24fps |
| Angles | Euler degrees (numerical) |
| Export | GLB / GLTF / JSON |
| Preview | WebGL (hardware-accelerated, 60fps) |
🎬 Product Demo (1080p) — 90s, H.264, narrated, 5 Wuxia 3D Characters
Terminal:
python3 tools/qao/ruiflow_v20_real_motion_pipeline.py --prompt "亢龙有悔"
Output: 7-joint, 14-frame numerical angles → WebGL 3D skeletal animation
Characters: 降龙十八掌 / 六脉神剑 / 太极拳 / 独孤九剑 / 乾坤大挪移📁 Assets:
ruiflow_product_demo_final.mp4(1920×1080, 3s, 3.0Mbps H.264 + audio, raw) 📁 Extra:ruiflow_product_demo_1080p.mp4(1920×1080, 14s, 416kbps H.264, raw)
Text Prompt (NLP)
↓
ruiflow_v20_real_motion_pipeline.py
↓ (7-joint, 14-frame @24fps numerical angles)
v20_to_webgl_bridge.py
↓ (20-frame, 6-joint Euler angles JSON)
webgl-preview/app.js (Data-Driven Mode)
↓
WebGL 3D Character Animation
See STATUS.md for L3-verified component health.
- Text-to-Motion: Natural language prompts → 3D skeletal animation
- 7-Joint Kinematic Chain: Full-body articulation with numerical angle output
- WebGL Preview: Real-time browser-based 3D character animation
- CLI Interface:
--prompt,--output,--formatoptions - Bridge Pipeline: End-to-end JSON-based data flow (no hardcoded motions)