MMD file support, similar or better than the one in threejs

Threejs has this gem:
https://threejs.org/docs/#examples/loaders/MMDLoader
https://threejs.org/docs/#examples/animations/MMDPhysics
https://threejs.org/docs/#examples/animations/MMDAnimationHelper

demo
https://threejs.org/examples/webgl_loader_mmd.html

Was wondering if we can get it in babylonjs. With the huge amounts of community made content, it could make for some interesting web apps. The MMD content tends to be shared as video on the web, having it be shared in a more interactive way would be better.

It would be amazing if we can get runtime access to the skeleton, animation, model parts, materials, etc - be able to change them dynamically

I believe it is based on this:
http://takahirox.github.io/mmd-viewer-js/


but I might be wrong

The best thing about this is really how when loaded we get physics, animation and materials working out of the box. They are all set in the file.

Threejs has made this super easy.
So to summarize the selling points:

  • big amount of free quality content with community making it actively
  • little effort to load an animated model with physics set on it (traditionally a pain in the neck with other formats). Its all in the file
  • the content sort of works great for interactive/vr apps - it compliments that technology
  • would make for some fun babylonjs demos : ) (even Unity3d got one)

THis is not something I’m planning to personnaly work on but if anyone is motivated give it a try, I will be glad to merge the loader :wink:

Is there some simple example code we could look at for loading a new file type into babylonjs? What would be a good first place to start? Was wondering if we can adopt what threejs has to babylonjs

Looking into it, the threejs one uses this to parse the files

Here is the source code

perhaps it’s worth contacting takahiro (the author) to see if he would be interested in porting it to babylonjs?

1 Like