This is a Cubism SDK plugin for using the motion-sync function in Cubism SDK for Web.
Please read License before use.
Please read Notice before use.
This plugin is a Cubism SDK plugin for Cubism SDK for Web.
You need the Cubism SDK for Web package to use it.
If you are looking for the SDK package download page, please visit the Download page.
A library that provides the motion-sync function. Live2D Cubism MotionSync Core is not included in this repository.
To download the plugin package that includes Live2D Cubism MotionSync Core, please refer to this page.
.
├─ .vscode # Project settings directory for Visual Studio Code
├─ Core # Directory containing Live2D Cubism MotionSync Core
├─ Framework # Directory containing the main source code of the motion-sync function
└─ Samples
├─ Resources # Directory containing resources such as model files and images
└─ TypeScript # Directory containing the TypeScript sample projects
If you are looking for the latest features and fixes, please check the develop
branch.
The master
branch is synchronized with the develop
branch for each official plugin release.
- Please check
Development environment construction
inREADME.md
of Cubism SDK for Web.
If you want to use this plugin as is, the following steps are required:
To run this plugin, you first need to place Cubism SDK for Web and this plugin in the following directory structure. After placing them, open the directory in which they are placed in Visual Studio Code.
.
├─ .vscode # Project settings directory for Visual Studio Code (†1)
│
├─ CubismSdkForWeb # Root directory of Cubism SDK for Web (†2)
│ └─ ... # Directory structure of Cubism SDK for Web
│
└─ CubismSdkMotionSyncPluginForWeb # Root directory of this plugin
├─ .vscode # Project settings directory for Visual Studio Code
├─ Core # Directory containing Live2D Cubism MotionSync Core
├─ Framework # Directory containing the main source code of the motion-sync function
└─ Samples
├─ Resources # Directory containing resources such as model files and images
└─ TypeScript # Directory containing TypeScript sample projects
†1 Creates in Creating launch.json section.
†2 By default, it must be fixed with the name Cubism SdkForWeb
.
If you want to change the name of the root directory of the Cubism SDK for Web, you need to modify the name of CubismSdkForWeb
used in the following location in the root directory of this plugin.
- Framework/tsconfig.json
If you want to run Samples, you need to make additional changes to the relevant parts of the following files.
- Samples/TypeScript/Demo/index.html
- Samples/TypeScript/Demo/tsconfig.json
- Samples/TypeScript/Demo/vite.config.mts
- Samples/TypeScript/Demo/vite.config.microphone.mts
- Samples/TypeScript/Demo/copy_resources.js
If you want to change the directory structure, you can do so by editing the above file.
Create a .vscode
directory in the directory where Cubism SDK for Web and this plugin are placed and copy launch.json
from the .vscode
directory of Cubism SDK for Web.
Once the copy is complete, modify the url
key as follows. Replace CubismWebMotionSyncComponents
with the name of the root directory of this plugin.
"url": "https://localhost:5000/CubismWebMotionSyncComponents/Samples/TypeScript/Demo/"
The task list is displayed by entering >Tasks: Run Task
in the command palette (View > Command Palette...).
- Select
npm: install - CubismWebMotionSyncComponents/Samples/TypeScript/Demo
from the task list to download the dependent package - Select
npm: build - CubismWebMotionSyncComponents/Samples/TypeScript/Demo
from the task list to build a sample demo using audio files - Or, select
npm: build:microphone - CubismWebMotionSyncComponents/Samples/TypeScript/Demo
from the task list to build a sample demo using microphone input - Select
npm: serve - CubismWebMotionSyncComponents/Samples/TypeScript/Demo
from the task list to start a simple server for checking the operation - Enter
https://localhost:5000/
in the URL field of your browser to access it - Enter
>Tasks: Terminate Task
from the command palette and selectnpm: serve-https
to terminate the simple server
NOTE: Replace CubismWebMotionSyncComponents
with the name of the root directory for this plugin if changed.
NOTE: This sample project uses the @vitejs/plugin-basic-ssl
package to issue self-signed certificates. The self-signed certificate issued by this sample project is not intended for use outside of the development environment. It may also cause warnings in some browsers.
For other tasks, please refer to README.md of the sample project.
Open the directory where Cubism SDK for Web and this plugin are placed in Visual Studio Code and enter the F5 key to start Debugger for Chrome.
You can place breakpoints in Visual Studio Code to debug in conjunction with the Chrome browser.
NOTE: Settings for debugging are described in .vscode/launch.json
.
Please refer to CHANGELOG.md for the changelog of this repository.
- 22.2.0
- 20.13.1
Platform | Browser | Version |
---|---|---|
Android | Google Chrome | 125.0.6422.113 |
Android | Microsoft Edge | 124.0.2478.104 |
Android | Mozilla Firefox | 126.0 |
iOS / iPadOS | Google Chrome | 125.0.6422.80 |
iOS / iPadOS | Microsoft Edge | 125.0.2535.60 |
iOS / iPadOS | Mozilla Firefox | 126.1 |
iOS / iPadOS | Safari | 17.4.1 |
macOS | Google Chrome | 125.0.6422.113 |
macOS | Microsoft Edge | 125.0.2535.67 |
macOS | Mozilla Firefox | 126.0 |
macOS | Safari | 17.5 |
Windows | Google Chrome | 125.0.6422.113 |
Windows | Microsoft Edge | 125.0.2535.67 |
Windows | Mozilla Firefox | 126.0 |
Note: You can start the server for operation check by running the serve-https
script of ./Samples/TypeScript/Demo/package.json
.
The sound device for input/output is a specification whereby the default device is used.
Depending on your environment, feedback may occur. To prevent this, please mute the sample application and the device's sound playback, or move the microphone and speaker away from each other.
There are many ways to contribute to the project: logging bugs, submitting pull requests on this GitHub, and reporting issues and making suggestions in Live2D Forum.
We very much appreciate your pull requests, whether they bring fixes, improvements, or even new features. To keep the main repository as clean as possible, create a personal fork and feature branches there as needed.
We are regularly checking issue-reports and feature requests at Live2D Forum. Before filing a bug report, please do a search in Live2D Forum to see if the issue-report or feature request has already been posted. If you find your issue already exists, make relevant comments and add your reaction.
We're also interested in your feedback for the future of the SDK. You can submit a suggestion or feature request at Live2D Forum. To make this process more effective, we're asking that you include more information to help define them more clearly.
If you want to suggest or ask questions about how to use the Cubism SDK between users, please use the forum.