vue-3d-model
vue-3d-model copied to clipboard
加载 glb 模型,没有动画
加载 glb 模型可以显示,但是模型没有动画。
现在还不支持播放动画
现在还不支持播放动画
那现在只能展示一个模型嘛,如果我有多个模型要放在一起呢,比如一个货架,每个货架摆放盒子进去,是不是无法实现
现在还不支持播放动画
这个什么时候能支持呢?
现在还不支持播放动画
这个什么时候能支持呢?
支持动画,需要修改源码,再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