A Live2D Cubism model renderer for terminal. It also support face tracking.
You must have the Live2D Cubism SDK Core library: Live2D Cubism SDK.
Create a .env file in the project root to specify the path to the SDK directory:
# Example .env configuration
CubismSDKDir=/path/to/your/CubismSDK/Core/libcargo run --release -- ./path/to/model.model3.jsonYou can download and try Live2D sample model here.
# Run with camera tracking enabled
cargo run --release -- ./path/to/model.model3.json --cameraNote: For face tracking, ensure OpenSeeFace is running and sending data to the default UDP port (11573).
The arrow keys are used for moving the camera, and the + - keys are used for zooming in and out.
In order to interact with app. You need to write a model_name.live.json file and place it in the same folder as your model_name.model3.json.
examples:
{
"Version": 1,
"Name": "your_model_name",
"Hotkeys": [
{
"Action": "Open/Close Motion Panel",
"Triggers": {
"Trigger1": "M",
"Trigger2": "",
"Trigger3": ""
}
},
{
"Action": "Open/Close Debug Panel",
"Triggers": {
"Trigger1": "D",
"Trigger2": "",
"Trigger3": ""
}
},
{
"Action": "Enable/Disable Physics",
"Triggers": {
"Trigger1": "P",
"Trigger2": "",
"Trigger3": ""
}
},
{
"Action": "Open/Close Camera",
"Triggers": {
"Trigger1": "C",
"Trigger2": "",
"Trigger3": ""
}
}
]
}- Separate live2d framework to a crate.
- Support processes interaction.
- Enable multiply expressions.
