RaSan147 / pixi-live2d-display

A PixiJS plugin to display Live2D models of any kind (With lip-sync from audio)
https://guansss.github.io/pixi-live2d-display/
MIT License
77 stars 16 forks source link

Hello, I tried to replace Live2D with my custom model, but an error occurred. Is there a way to resolve it? #12

Open dd1a2v3i4s5t opened 1 month ago

dd1a2v3i4s5t commented 1 month ago

After replacing it with my custom model, when it loads, the error appears in cubism4.min.js as this.renderer._clippingManager._currentFrameNo = e. The error is: Uncaught TypeError: Cannot set properties of undefined (setting '_currentFrameNo'). How can I fix this?

RaSan147 commented 1 month ago

Which version of live2D model is it??

dd1a2v3i4s5t commented 1 month ago

I am using Live2D Cubism Editor 5.0 for creation and SDK 4.0. https://drive.google.com/file/d/1nhgo7PZ4XLjliZUZJzKDPyIYyuijFrHF/view?usp=sharing

這是哪個版本的live2D模型?

RaSan147 commented 1 month ago

Editor version less than 5 is supported unfortunately

On Thu, Sep 26, 2024, 8:05 AM dd1a2v3i4s5t @.***> wrote:

I am using Live2D Cubism Editor 5.0 for creation and SDK 4.0.

https://drive.google.com/file/d/1nhgo7PZ4XLjliZUZJzKDPyIYyuijFrHF/view?usp=sharing

這是哪個版本的live2D模型?

— Reply to this email directly, view it on GitHub https://github.com/RaSan147/pixi-live2d-display/issues/12#issuecomment-2375604330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIDNL2YNOMX6BSR2K7T7GDLZYNTVRAVCNFSM6AAAAABOZ4LBIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZVGYYDIMZTGA . You are receiving this because you commented.Message ID: @.***>

dd1a2v3i4s5t commented 1 month ago

So, do I need to use Live2D Cubism Editor 5.0 for creation and SDK 5.0? But when I initially used SDK 5.0, errors still occurred. It was only when I tested with the official example from the website that it displayed correctly, and the official one uses SDK 4.0. However, for the model I created, errors occur regardless of whether I use SDK 4.0 or 5.0.

RaSan147 commented 1 month ago

You need to use both less than 5 version of editor and sdk

5 is not supported by the pixi js live2d yet. Kindly ask the original source fork for support.

On Thu, Sep 26, 2024, 10:20 AM dd1a2v3i4s5t @.***> wrote:

So, do I need to use Live2D Cubism Editor 5.0 for creation and SDK 5.0? But when I initially used SDK 5.0, errors still occurred. It was only when I tested with the official example from the website that it displayed correctly, and the official one uses SDK 4.0. However, for the model I created, errors occur regardless of whether I use SDK 4.0 or 5.0.

— Reply to this email directly, view it on GitHub https://github.com/RaSan147/pixi-live2d-display/issues/12#issuecomment-2375839128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIDNL23VU2I6YBHWB5TQ45TZYODQFAVCNFSM6AAAAABOZ4LBIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZVHAZTSMJSHA . You are receiving this because you commented.Message ID: @.***>

RaSan147 commented 1 month ago

Also the cmo3 file you've sent me, it won't load

You need to compile its output with json data and moc3 files.

You need to connect with the json file.

dd1a2v3i4s5t commented 1 month ago

I'll try to find an editor version lower than Live2D Cubism Editor 5.0 and rewrite it again. Additionally, I have attached the full example in the link below, but the error message still appears.

Who should I seek help from when encountering the above issue?

https://drive.google.com/file/d/1efupjl8Kuxd06zSy6fE9V7jx6c76XcPE/view?usp=sharing

RaSan147 commented 1 month ago

as weird as it can be, if i resize window, your model shows up

if i hide (display none) and re-show it, it works fine. but my other models are working just fine. weird.