Skip to content
/ mdrs Public

MDanceIO Rendering Service. MDRS is an agent that renders MDanceIO viewport and sends to user endpoint using WebRTC.

Notifications You must be signed in to change notification settings

ReaNAiveD/mdrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDRS

MDanceIO Render Service 🎉🎉

MDRS provides remote rendering service based on MDanceIO through WebRTC.

Get Started

Prerequisite

MDRS is based on libvpx to encode dataframes.

Build

The following environment variables should be set.

VPX_STATIC = 1
VPX_VERSION = 1.8.2
VPX_LIB_DIR = <PATH TO LIBVPX>\\lib\\x64
VPX_INCLUDE_DIR = <PATH TO LIBVPX>\\include
cargo build --release

Run from source

This is just a demo to verify that mdanceio can perform remote rendering via WebRTC. To execute, you should follow the steps below.

Open the example webpage

jsfiddle.netVisit the jsfiddle and you should see two text-areas and a Button. Wait a minute and copy the text in Browser base64 Session Description area.

The example page is forked from webrtc-rs/example directly. I will replace it with GitHub Pages in the near future.

Run the Rendering Service

Paste the text copied into a file named session_desc.txt in private_data related to your workspace or cwd.

Then, run in your workspace.

cargo run --package mdrs --bin mdrs -- --model <Model Path> --motion <Motion Path>

You can learn how to get valid models and motions in MDanceIO project README.

Start WebRTC session

Copy the text that mdrs just emitted and copy it into Golang base64 Session Description area.

Hit Start Session button and enjoy you MMD.

About

MDanceIO Rendering Service. MDRS is an agent that renders MDanceIO viewport and sends to user endpoint using WebRTC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages