HomeWorkAbout
Twitch Avatar Streaming

Twitch Avatar Streaming

Unity C#MediaPipeWebSocketTwitch APIOBS IntegrationAvatar Animation

Gallery

Twitch Avatar Streaming Setup

Twitch Avatar Streaming - Desktop app for virtual stream setup with motion-tracked avatar and chat command integration

Twitch Avatar Streaming Interface

Twitch Avatar Streaming - Real-time avatar interface with OBS integration and virtual streaming controls

Demo Video

Twitch Avatar Streaming in Action

Watch the motion-tracked avatar and chat command demo

Watch on YouTube

The Challenge

Create a desktop application that empowers Twitch streamers to present themselves through animated avatars instead of webcams. The app needed to track body and facial motions in real time, mirror them onto a customizable virtual character, and allow viewers to trigger stream events through chat commands, all packaged as a polished native desktop experience.

Development Process

Key Challenges

Achieving low-latency body tracking and facial landmark detection that translates smoothly onto an animated avatar without lag or jitter

Building a robust Twitch chat command parser that can trigger avatar reactions, scene changes, and sound effects in real time while avoiding command conflicts

Architecture & Design

Built in Unity with a custom tracking pipeline using MediaPipe for body and face landmark detection via webcam feed. Avatar animations are driven by a blend of IK solvers and pre-authored animation states mapped to tracked landmarks. A dedicated Twitch IRC/WebSocket client listens for chat commands and dispatches events to the avatar and scene controller.

Project Structure
Tracking/
├── MediaPipeTracker.cs
├── FaceLandmarkMapper.cs
└── BodyPoseController.cs

Avatar/
├── AvatarAnimator.cs
├── ExpressionBlender.cs
└── OutfitManager.cs

Stream/
├── TwitchChatClient.cs
├── CommandParser.cs
└── SceneController.cs

Core Systems

Real-time webcam body and face tracking with MediaPipe landmark mapping to avatar bones

Twitch chat command system with custom triggers for avatar emotes, scene swaps, and alerts

The Result

Twitch Avatar Streaming final result

Final Product

A desktop streaming application that lets Twitch streamers set up their virtual space, mimic real-time body motions on a customizable 2D/3D avatar, and control the entire stream through interactive chat commands. MVP designed and built from scratch.

Key Features

Real-time body and facial motion tracking mapped to a customizable 2D/3D avatar

Virtual stream room setup with selectable backgrounds, lighting, and props

Interactive Twitch chat commands to trigger avatar reactions, outfit swaps, and sound alerts

OBS Studio integration for seamless stream compositing and source management

Lightweight desktop MVP built from scratch, ready for further feature expansion

<50ms
Tracking Latency
60 FPS
Avatar Render
MVP
From Scratch

Improvements & Impact

The Twitch Avatar Streaming MVP successfully delivers a fully functional virtual streaming setup that brings streamers to life through animated avatars. Real-time motion tracking keeps the avatar naturally in sync with the streamer, while the chat command system turns passive viewers into active participants. Streamers can customize their virtual space and hand off controls to their community, creating a more engaging and interactive broadcast experience. The foundation is solid and ready for advanced features like full-body VR tracking, custom avatar marketplace, and multi-platform streaming support.

OJ
Otar Japaridze

Unity C# Developer · Multiplayer Engineer · Full-Stack Cloud Developer

Connect

LinkedIn

© 2025 Otar Japaridze · All Rights Reserved

Available for work
Skango Games LLC1.76K subscribers