-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
The project won't work #2
Comments
Please tell me the details of the error with the code |
pmx and vmd files are required. Due to licensing issues, the assets are not included in the source. |
Failure to load:https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd |
You must load vmd with VmdLoader. Aren't you using BvmdLoader? |
I used the vmdloader to load the vmd, but did not use the bvmdloader |
So is bvmd necessary? |
bvmd is optional. And I think it's a CORS problem. Please host the static files locally and give them a try. |
No, I had the same problem with it locally, you can download it and test it |
There is not enough information to know the cause |
You can use https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd for testing |
I fixed it now, so you can use the 0.5.0 version. |
How to make pmx file execute vmd animation, I tested seems not to work |
If you could show me the code, I might be able to identify the problem. |
const pmxLoader = new PmxLoader(); |
const pmxLoader = new PmxLoader();
SceneLoader.RegisterPlugin(pmxLoader);
const model = await SceneLoader.ImportMeshAsync(
'',
'/models/pmx/[MODELS] Lovesick girls ver.1/[LSG] Jennie (Miku) ver.1.pmx',
'',
).then((result) => result.meshes[0]);
console.log('model', model);
const vmdLoader = new VmdLoader(scene);
const modelMotion = await vmdLoader.loadAsync("model_motion_1", "https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd");
const mmdRuntime = new MmdRuntime();
const mmdModel = mmdRuntime.createMmdModel(model);
mmdModel.addAnimation(modelMotion);
mmdModel.setAnimation("model_motion_1");
mmdRuntime.register(scene);
mmdRuntime.playAnimation(); It should be work |
I cloned this project, but after executing the readme, the project reported an error and did not work properly.
The same goes for npm packages
The text was updated successfully, but these errors were encountered: