guansss / pixi-live2d-display

A PixiJS plugin to display Live2D models of any kind.
https://guansss.github.io/pixi-live2d-display/
MIT License
809 stars 123 forks source link

Multiple expression #123

Open Naozumi520 opened 6 months ago

Naozumi520 commented 6 months ago

When the model is using an specific expression, is it possible to overlap with another expression? I'm currently suffering by the expression of the model. Which related to its hair, when specific with a expression bangs3, the model will not cover its eyes. And that's what I want. However, when I put on bangs3 with using model.expression('bangs3'), it's not possible to use another expression on it. Do you have any idea of it?

guansss commented 6 months ago

It's Live2D's standard behavior that setting an expression will cancel the previous one. Cubism 4 SDK is open source and can be modified to support overlapping expressions, but Cubism 2 SDK is not, so this behavior is unlikely to change.

I've seen a workaround somewhere which uses a motion to represent the expression, but that means the motion manager will need to support overlapping motions, which is unfortunately not yet supported by this plugin.