live2demo/README.md

143 lines
5.4 KiB
Markdown
Raw Permalink Normal View History

2022-09-08 10:22:12 +08:00
[English](README.md) / [日本語](README.ja.md)
---
2021-06-10 10:28:16 +08:00
# Cubism Web Samples
2018-09-20 15:13:14 +08:00
This is a sample implementation of an application that displays models output by Live2D Cubism Editor.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
It is used in conjunction with the Cubism Web Framework and Live2D Cubism Core.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
## License
2020-01-30 17:32:33 +08:00
2022-09-08 10:22:12 +08:00
Please check the [license](LICENSE.md) before using this SDK.
2020-01-30 17:32:33 +08:00
2019-11-14 20:41:22 +08:00
2022-09-08 10:22:12 +08:00
## Notices
2019-11-14 20:41:22 +08:00
2022-09-08 10:22:12 +08:00
Please check the [notices](NOTICE.md) before using this SDK.
2019-11-14 20:41:22 +08:00
## Compatibility with Cubism 5 new features and previous Cubism SDK versions
This SDK is compatible with Cubism 5.
For SDK compatibility with new features in Cubism 5 Editor, please refer to [here](https://docs.live2d.com/en/cubism-sdk-manual/cubism-5-new-functions/).
For compatibility with previous versions of Cubism SDK, please refer to [here](https://docs.live2d.com/en/cubism-sdk-manual/compatibility-with-cubism-5/).
2022-09-08 10:22:12 +08:00
## Directory structure
2018-09-20 15:13:14 +08:00
2019-09-02 18:14:43 +08:00
```
.
2022-09-08 10:22:12 +08:00
├─ .vscode # Project settings directory for Visual Studio Code
├─ Core # Directory containing Live2D Cubism Core
├─ Framework # Directory containing source code such as rendering and animation functions
2019-09-02 18:14:43 +08:00
└─ Samples
2022-09-08 10:22:12 +08:00
├─ Resources # Directory containing resources such as model files and images
└─ TypeScript # Directory containing TypeScript sample projects
2019-09-02 18:14:43 +08:00
```
2018-09-20 15:13:14 +08:00
2019-09-02 18:14:43 +08:00
## Live2D Cubism Core for Web
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
A library for loading the model.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
This repository does not manage Cubism Core.
Download the Cubism SDK for Web from [here](https://www.live2d.com/download/cubism-sdk/download-web/) and copy the files in the Core directory.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
## Development environment construction
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
1. Install [Node.js] and [Visual Studio Code]
1. Open **the top directory of this SDK** in Visual Studio Code and install the recommended extensions
* In addition to pop-up notifications, you can check the others by typing `@recommended` from the Extensions tab
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
### Operation check of sample demo
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
Enter `>Tasks: Run Task` in the command palette (*View > Command Palette...*) to display the task list.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
1. Select `npm: install - Samples/TypeScript/Demo` from the task list to download the dependent packages
1. Select `npm: build - Samples/TypeScript/Demo` from the task list to build the sample demo
1. Select `npm: serve - Samples/TypeScript/Demo` from the task list to start the simple server for operation check
1. Enter `http://localhost:5000/Samples/TypeScript/Demo/` in the URL field of your browser to access it
1. Enter `>Tasks: Terminate Task` from the command palette and select `npm: serve` to terminate the simple server
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
For other tasks, see [README.md](Samples/TypeScript/README.md) of the sample project.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
NOTE: Settings for debugging are described in `.vscode/tasks.json`.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
### Project debugging
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
Open **the top directory of this SDK** in Visual Studio Code and enter the *F5* key to start Debugger for Chrome.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
You can place breakpoints in Visual Studio Code to debug in conjunction with the Chrome browser.
2018-09-21 17:38:31 +08:00
2022-09-08 10:22:12 +08:00
NOTE: Settings for debugging are described in `.vscode/launch.json`.
2018-09-21 17:38:31 +08:00
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
## SDK manual
2018-09-21 17:38:31 +08:00
2020-01-30 17:32:33 +08:00
[Cubism SDK Manual](https://docs.live2d.com/cubism-sdk-manual/top/)
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
## Changelog
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repository.
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
## Development environment
2018-09-20 15:13:14 +08:00
2020-01-30 17:32:33 +08:00
### Node.js
2018-09-20 15:13:14 +08:00
* 20.7.0
* 18.18.0
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
## Operation environment
2018-09-20 15:13:14 +08:00
2022-09-08 10:22:12 +08:00
| Platform | Browser | Version |
2019-09-02 18:14:43 +08:00
| --- | --- | --- |
2023-05-25 10:35:15 +08:00
| Android | Google Chrome | 113.0.5672.77 |
| Android | Microsoft Edge | 113.0.1774.38 |
| Android | Mozilla Firefox | 113.0 |
| iOS / iPadOS | Google Chrome | 113.0.5672.109 |
| iOS / iPadOS | Microsoft Edge | 113.0.1774.42 |
| iOS / iPadOS | Mozilla Firefox | 113.0 |
| iOS / iPadOS | Safari | 16.6.1 |
| macOS | Google Chrome | 117.0.5938.92 |
| macOS | Microsoft Edge | 117.0.2045.43 |
2023-05-25 10:35:15 +08:00
| macOS | Mozilla Firefox | 113.0.1 |
| macOS | Safari | 16.6.1 |
| Windows | Google Chrome | 117.0.5938.92 |
| Windows | Microsoft Edge | 117.0.2045.43 |
2023-05-25 10:35:15 +08:00
| Windows | Mozilla Firefox | 113.0 |
2022-09-08 10:22:12 +08:00
Note: You can start the server for operation check by running the `serve` script of `./Samples/TypeScript/Demo/package.json`.
## Contributing
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 Community.
### Forking And Pull Requests
We very much appreciate your pull requests, whether they bring fixes, improvements, or even new features. Note, however, that the wrapper is designed to be as lightweight and shallow as possible and should therefore only be subject to bug fixes and memory/performance improvements. To keep the main repository as clean as possible, create a personal fork and feature branches there as needed.
### Bugs
We are regularly checking issue-reports and feature requests at Live2D Community. Before filing a bug report, please do a search in Live2D Community 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.
### Suggestions
We're also interested in your feedback for the future of the SDK. You can submit a suggestion or feature request at Live2D Community. To make this process more effective, we're asking that you include more information to help define them more clearly.
## Forum
2022-09-08 10:22:12 +08:00
If you want to suggest or ask questions about how to use the Cubism SDK between users, please use the forum.
2022-09-08 10:22:12 +08:00
- [Live2D Creator's Forum](https://community.live2d.com/)
- [Live2D 公式クリエイターズフォーラム (Japanese)](https://creatorsforum.live2d.com/)