Git Product home page Git Product logo

Comments (12)

noname0310 avatar noname0310 commented on May 26, 2024

I don't know what data you're talking about. You need to be more specific.

Everything loaded by the loader conforms to the specifications of Babylon.js.
Therefore, most of the things you want can be solved based on the documentation of Babylon.js.

from babylon-mmd.

spencer17x avatar spencer17x commented on May 26, 2024

Whether a general method can be provided for manipulating bone or deformation,like:https://github.com/virtual-cast/babylon-vrm-loader/tree/master

from babylon-mmd.

noname0310 avatar noname0310 commented on May 26, 2024

That is the interface that is possible because the vrm bone structure is guaranteed to be constant.

PMX cannot create such an interface because of its free bone structure, and even if it can, such an interface adversely affects performance and bundle size.

from babylon-mmd.

noname0310 avatar noname0310 commented on May 26, 2024

https://github.com/noname0310/babylon-mmd/blob/main/src/runtime/animation/MmdRuntimeAnimation.ts#L345C1-L345C1

A sample bone binding code can be found in this link.

from babylon-mmd.

spencer17x avatar spencer17x commented on May 26, 2024

What does 'the vrm bone structure is guaranteed to be constant.' and 'PMX cannot create such an interface because of its free bone structure, and even if it can, such an interface adversely affects performance and bundle size.' mean?

from babylon-mmd.

noname0310 avatar noname0310 commented on May 26, 2024

https://docs.unity3d.com/ScriptReference/HumanBodyBones.html
VRM Loader allows static mapping based on name because it ensures a bone hierarchy that follows the structure of HumanBodyBones.

https://github.com/virtual-cast/babylon-vrm-loader/blob/master/src/humanoid-bone.ts
And that functionality is naturally implemented through hardcoding, merely mapping bone names. Therefore, the absence of that feature does not cause any issues in manipulating PMX models.

from babylon-mmd.

spencer17x avatar spencer17x commented on May 26, 2024

The mmd plugin for threejs supports this feature, would you consider supporting it

from babylon-mmd.

noname0310 avatar noname0310 commented on May 26, 2024

I've never heard of it. I don't even know what exactly you're talking about.
can you give me a related reference?

from babylon-mmd.

spencer17x avatar spencer17x commented on May 26, 2024

Just like the vrm loader, it drives the face and bones

from babylon-mmd.

noname0310 avatar noname0310 commented on May 26, 2024

As I said above, all operations are already possible with the feature of Babylon.js.

Bone / Skeleton manipulate is possible through the Bone and Skeleton class in Babylon.js, and for MorphTargetManager class in the case of MorphTarget.
https://doc.babylonjs.com/features/featuresDeepDive/mesh/bonesSkeletons
https://doc.babylonjs.com/features/featuresDeepDive/mesh/morphTargets

And you can also manipulate morphs that operate at mmd runtime through MmdModel.morph.

from babylon-mmd.

spencer17x avatar spencer17x commented on May 26, 2024

Okay, thank you

from babylon-mmd.

noname0310 avatar noname0310 commented on May 26, 2024

There is no further discussion, so I will close the issue. If you have any other questions, please feel free to post new issues

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.