Skip to content
プロジェクト

moeru-ai/three-mmd has 39 GitHub stars and 12 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-25 12:26 UTC. Last push 2026-11-21.

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

🥬💃 Use MMD on Three.js

制作・メディア

@moeru/three-mmd

Use MMD on Three.js

Packages

Install

pnpm add three @moeru/three-mmd
pnpm add -D @types/three

Basic usage

import { buildAnimation, MMDLoader, VMDLoader } from '@moeru/three-mmd'
import { AnimationMixer, Timer } from 'three'

const mmd = await new MMDLoader().loadAsync('/models/miku_v2.pmd')
const vmd = await new VMDLoader().loadAsync('/motions/wavefile_v2.vmd')
const mixer = new AnimationMixer(mmd.mesh)
const timer = new Timer()

mixer.clipAction(buildAnimation(vmd, mmd.mesh)).play()

// Call this once per render frame.
const update = () =>
  mmd.updateWithMixer(timer.getDelta(), mixer)

updateWithMixer() restores the previous animation pose, advances the mixer, then applies MMD IK, grants, and the optional physics service. Use update() directly when the mixer is managed elsewhere; do not call both methods for the same frame.

Physics

Physics is provided by separate packages. Register one plugin before loading the model:

import { MMDLoader } from '@moeru/three-mmd'
import { MMDAmmoPlugin } from '@moeru/three-mmd-physics-ammo'

const mmd = await new MMDLoader()
  .register(MMDAmmoPlugin)
  .loadAsync('/models/miku_v2.pmd')

The default material backend is the WebGL MMDToonMaterial.

See also

License

MIT

This project is based on the code from babylon-mmd, three.js and three-ts-types r171.

Sponsors

sponsors

関連プロジェクトを探す

読み込み中…