Git Product home page Git Product logo

Comments (16)

noname0310 avatar noname0310 commented on June 5, 2024

Please tell me the details of the error with the code

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

When I run, I get the following error
image

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

pmx and vmd files are required. Due to licensing issues, the assets are not included in the source.

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

Failure to load:https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd
image

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

You must load vmd with VmdLoader.

Aren't you using BvmdLoader?

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

I used the vmdloader to load the vmd, but did not use the bvmdloader

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

So is bvmd necessary?

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

bvmd is optional. And I think it's a CORS problem. Please host the static files locally and give them a try.

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

No, I had the same problem with it locally, you can download it and test it

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

There is not enough information to know the cause

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

You can use https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd for testing

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

I fixed it now, so you can use the 0.5.0 version.

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

How to make pmx file execute vmd animation, I tested seems not to work

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024

If you could show me the code, I might be able to identify the problem.

from babylon-mmd.

spencer17x avatar spencer17x commented on June 5, 2024

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("", "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);

from babylon-mmd.

noname0310 avatar noname0310 commented on June 5, 2024
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

from babylon-mmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.