For AI agents: the complete documentation index is available at /vue-vrm/ja/llms.txt, the full documentation bundle is available at /vue-vrm/ja/llms-full.txt, and this page is available as Markdown at /vue-vrm/ja/examples/index.md.
  • 日本語
  • 実装例

    Warning

    モデルとそのアセットをすべて含めて自分が著作権を持っている場合を除き、公開URLやアプリに同梱したファイルから実体ファイルを直接読み込まないでください。代わりに、以下のいずれかの方法を使ってください。

    vue-vrmはArrayBufferしか受け付けません(ArrayBufferしか受け付けない理由を参照)。ここでは、モデルファイルがコード上の公開URLとして現れないように、サーバーから配信する方法を紹介します。どちらもCloudflare Workersで動きます。

    実装例モデルの取得元難易度
    Cloudflare R2 + WorkersR2バケットに置いた自分のファイル易しい
    VRoid Hub APIVRoid Hubで公開されているモデル(OAuth経由)上級

    どちらの場合も、アプリ側の処理は同じです。バイト列を取得してmodel-dataに渡します。

    const response = await fetch(endpoint);
    modelData.value = await response.arrayBuffer();

    完全な実装はlogue/v.logue.devにあります。