-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reconstruct curve totals for corrupt/old models #57
base: develop
Are you sure you want to change the base?
reconstruct curve totals for corrupt/old models #57
Conversation
Thank you for pull request and investigation! I have reviewed the background of this pull request. It's understood that there's a crash when invalid data is present in motion3.json. However, as a premise, why would there be invalid motion3.json files? The motion3.json file is generated from Cubism Editor, and by directly loading it without any modifications, it should reproduce the curve information. Is it possible that the motion3.json files generated from Cubism Editor are incorrect? Cubism SDK typically assumes that it's loading the original data outputted from Cubism Editor without any modifications. Do you have the moc3 files corresponding to the cmo3 files that were outputted? If there are issues, we would like to investigate from the output process in Cubism Editor. |
I've investigated this a little bit and it seems that they were generated by 3rd party tools to recover live2d assets from unity games https://github.com/Perfare/UnityLive2DExtractor/blob/ab37d53b99cf34641305704e93e2e0b9098f80c4/UnityLive2DExtractor/Program.cs#L161. What's surprising is that the Cubism Viewer opens them without crashing. That made me think it's a version incompatibility, but I'm fairly sure now that it's just an issue with the 3rd party utility doing the calculations wrong. |
I was puzzled as to why such files existed, but I understand now if they weren't directly exported from Cubism Editor. After internal discussions and reaching a conclusion, we do not guarantee the functionality of Live2D models extracted from Unity AssetBundle using unofficial tools, nor do we guarantee the recovery process. As for why these Therefore, this fix will not be accepted unless the JSON was exported from Cubism Editor. If you intend to correct this behavior, it would be advisable to first export JSON from Cubism Editor and confirm whether it can be read by Cubism SDK or other Cubism tools. |
We have reconfirmed our approach to the fix internally. |
That's great news! Thank you. |
- Fixed calculation of totalPointCount and totalSegmentCount in Live2D motions. Live2D/CubismNativeFramework#57
- Fixed calculation of totalPointCount and totalSegmentCount in Live2D motions. github.com/Live2D/CubismNativeFramework/pull/57
Reconstruct curve totals for models from, for example, https://github.com/andatoshiki/toshiki-live2d/tree/master/为美好的世界献上祝福!Fantastic Days
Resolves MizunagiKB/gd_cubism#75 and MizunagiKB/gd_cubism#52
Reconstruction algorithm based on https://gist.github.com/MizunagiKB/7fd109925e56db0ed88b77450cdea579, additional documentation from https://github.com/Live2D/CubismSpecs/blob/ab04558655dfd4d8c2d529286124e274648c772d/FileFormats/motion3.json.md