vue-3d-model icon indicating copy to clipboard operation
vue-3d-model copied to clipboard

加载 glb 模型,没有动画

Open smalike opened this issue 3 years ago • 4 comments

加载 glb 模型可以显示,但是模型没有动画。

smalike avatar Apr 11 '22 02:04 smalike

现在还不支持播放动画

hujiulong avatar Apr 11 '22 10:04 hujiulong

现在还不支持播放动画

那现在只能展示一个模型嘛,如果我有多个模型要放在一起呢,比如一个货架,每个货架摆放盒子进去,是不是无法实现

zhanghaifei1997 avatar Apr 14 '22 06:04 zhanghaifei1997

现在还不支持播放动画

这个什么时候能支持呢?

sunzhl avatar May 15 '22 02:05 sunzhl

现在还不支持播放动画

这个什么时候能支持呢?

支持动画,需要修改源码,再loader中加入以下代码:

  // auto play animations
  if (object.animations) {
    object.animations.forEach((clip: AnimationClip) => {
      const action = mixer.clipAction(clip);
      action.play();
    });
  }

不知道这么修改,可以直接使用我修改好的install即可,https://github.com/king2088/vue-3d-loader

king2088 avatar Aug 08 '22 01:08 king2088