Comments (3)
Because mmd models have their own bone structure, using vmd motions in other models requires retargeting, and even if retargeted, it is not possible to load a vmd model into a humanoid skeleton or something similar normally because "IK" and "append transform" do not exist in non-mmd models.
A theoretically possible way:
Loading VMD animations into other skeletons requires some understanding of the MMD runtime.
MmdRuntime.createMmdModel
You must first call this method to create a Skeletal Mesh that is not an mmd model to be manipulated by the MMD Runtime. To do this, the mesh you want to load will need to be modified to follow the specifications of the MmdMesh
interface.
In the process, you will need to create some metadata yourself, which is really only possible with a full understanding of the standard bone structure of modern MMD.
MmdModel.addAnimation
takes a retargeting map as its second parameter, so you can utilize it to fully play the vmd animation.
-
I'll soon provide a way to play animations using BabylonJS's
Animation
container, but even with this, loading motion can give strange results if theMesh
is not under the control of theMmdRuntime
. -
It may be possible to provide the ability to virtualize Skeletal Meshes for humanoid structures to behave as if they were MMD bones, but I'm not sure if this is possible. This is something that will be considered for future implementation.
from babylon-mmd.
The easiest way is to simply use a solution that converts your model to PMX format.
from babylon-mmd.
As of version 0.29.0, it is now possible to drive humanoid models into the MMD runtime.
To be precise, HumanoidMmd
provides the ability to create an MmdModel
from a humanoid mesh
You can check out the test code here:
https://github.com/noname0310/babylon-mmd/blob/main/src/Test/Scene/humanoidMmdTestScene.ts
https://github.com/noname0310/babylon-mmd/blob/main/src/Test/Scene/humanoidMmdTestScene2.ts
Documentation will be written later, so if you have any questions, please open an issue
from babylon-mmd.
Related Issues (20)
- Whether there are plans to support vmd animation HOT 5
- The project won't work HOT 16
- 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
- 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.