見出し画像

🎡three-vrm p5エディタ上で > 今動かない

画像1

現在自分のソースが動かないので原因確認中


https://editor.p5js.org/setapolo/sketches/kamb0a1yj
<script type="importmap">
  {
    "imports": {
      "three": "https://cdn.jsdelivr.net/npm/three@0.162.0/build/three.module.js",
      "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.162.0/examples/jsm/",
      "@pixiv/three-vrm": "three-vrm.module.js"
    }
  }
</script>



https://editor.p5js.org/setapolo/sketches/-PhXvSsu7

以下過去

three.jsのvrmloaderとの関係は分からなかったが、three-vrmというものがpixivさんから提供されているようだった。サンプルもたくさんあって、p5で動いた。

画像2

さすがにいつものthree.jsのサンプルよりか動きが重たい気もするが、これで動いたり表情かえたり、できるようになるらしい。

画像3

パラメータ入れたら笑うようになった。おもしろい。


お願い致します