Comments (16)
Please tell me the details of the error with the code
from babylon-mmd.
When I run, I get the following error
from babylon-mmd.
pmx and vmd files are required. Due to licensing issues, the assets are not included in the source.
from babylon-mmd.
Failure to load:https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd
from babylon-mmd.
You must load vmd with VmdLoader.
Aren't you using BvmdLoader?
from babylon-mmd.
I used the vmdloader to load the vmd, but did not use the bvmdloader
from babylon-mmd.
So is bvmd necessary?
from babylon-mmd.
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.
No, I had the same problem with it locally, you can download it and test it
from babylon-mmd.
There is not enough information to know the cause
from babylon-mmd.
You can use https://a-cdn.qbox.net/test/models/vmd/wavefile_v2.vmd for testing
from babylon-mmd.
I fixed it now, so you can use the 0.5.0 version.
from babylon-mmd.
How to make pmx file execute vmd animation, I tested seems not to work
from babylon-mmd.
If you could show me the code, I might be able to identify the problem.
from babylon-mmd.
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.
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)
- Whether there are plans to support vmd animation HOT 5
- How do I drive the model HOT 12
- Physical engine drive problem HOT 14
- A Big Shoutout to the Amazing babylon-mmd Repository! HOT 1
- Whether there are plans to support the pmd format HOT 4
- Animation Blending HOT 9
- Model texture .tga format supports HOT 9
- Uncaught TypeError: Cannot read properties of undefined (reading 'errorTextureDatas') at _MmdAsyncTextureLoader._addErrorTextureReferenceCount HOT 3
- Texture load/shader compilation delay HOT 17
- The model in the form of file cannot be loaded normally HOT 1
- Whether other character models can load vmd animation format HOT 3
- Submesh optimization HOT 3
- About Light Sources HOT 4
- Is there a way to bind or attach a pmx model to the bones of a character model? HOT 1
- Animation timescale modification HOT 1
- Integrating BPMX Model Files into Private PNG Chunks to Display Previews HOT 4
- Hair is flying arbitrarily around HOT 5
- BPMX and BVMD directly from the application HOT 2
- Original MmdMesh Object Fails isMmdSkinnedMesh Check After Creating MmdModel HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babylon-mmd.