noname0310/babylon-mmd

BPMX and BVMD directly from the application

Closed this issue · 2 comments

Is there a way to save models and movements directly from the application as BPMX and BVMD files?
And how final are the file formats? I would like to use them, but I'm afraid they might still change and then not be backward compatible.

You can use BpmxConverter and BvmdConverter to convert any mmd asset into BPMX and BVMD. All of these classes are provided by the library.

The converters that are available as web apps are all just a small GUI added in a single file.(The following code is included that uses the BpmxConverter and BvmdConverter, so you can use it as a reference)
https://github.com/noname0310/babylon-mmd/blob/main/src/Test/Scene/pmxConverterScene.ts
https://github.com/noname0310/babylon-mmd/blob/main/src/Test/Scene/vmdConverterScene.ts

And about backward compatibility, babylon-mmd hasn't reached version 1.0.0 yet, which means it could contain a breaking change at any time. There are no plans to add breaking changes to the BPMX and BVMD formats yet, but I can't guarantee that it won't happen.

BPMX and BVMD are not intended to replace PMX and VMD. They are meant to protect asset leakage and reduce load times, so you might consider always storing the original asset and the converted BPMX BVMD pair together.

okay, thank you for the information