How butzyung/systemanimatoronline works
Main Components Overview
The system should be divided into these key components:
a. Input Layer
• Webcam/Media Input Handler
• Motion Capture System (MediaPipe/TensorFlow.js integration)
• File Input Handler (for MMD/VRM models, motion files)
b. Processing Layer
• Motion Tracking Engine
• Face tracking (52 blendshapes)
• Body tracking
• Hand tracking
• Physics Engine (Ammo.js)
• Animation Processing
• Motion format converters (VMD/BVH/glTF)
• Motion recording system
c. Rendering Layer
• Three.js 3D Engine
• WebGL Renderer
• AR System (WebXR integration)
• Background Effects Processor
d. Output Layer
• Output
• VMC Protocol Interface (Electron mode)
• Motion Export System
Architectural Patterns
a. Modular Architecture
• Separate core components (js/_SA.js, js/_SA2.js)
• Plugin system (js_filters/)
• Model loaders (three.js/loaders/)
b. Multi-threading Architecture
• Web Workers for motion processing
• OffscreenCanvas for rendering
• Background task management
Integration Points
Connections between:
• MediaPipe/TensorFlow.js and motion capture system
• Three.js and WebGL rendering pipeline
• AR system and device camera
• VMC protocol and external applications
Data Flow
Flow:
Input → Motion Processing → 3D Model Animation → Rendering → Output
Specific Implementation Details
a. Core Systems
• System Animator core (js/_SA*.js)
• Animation helper (three.js/animation/)
• Motion capture modules (js/@mediapipe/)
b. File Handling
• Model loaders (MMD/VRM)
• Motion format converters
• Asset management system
Environment-Specific Features
• Web browser implementation
• Electron native features
• Mobile AR capabilities
• Performance optimization paths
This system design should reflect both the real-time nature of the application and its extensible architecture, showing how it can support multiple platforms and use cases while maintaining performance.