Git Product home page Git Product logo

Comments (3)

noname0310 avatar noname0310 commented on May 23, 2024

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 the Mesh is not under the control of the MmdRuntime.

  • 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.

noname0310 avatar noname0310 commented on May 23, 2024

The easiest way is to simply use a solution that converts your model to PMX format.

from babylon-mmd.

noname0310 avatar noname0310 commented on May 23, 2024

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)

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.