king2088 / vue-3d-loader

VueJS and threeJS 3d viewer plugin
https://king2088.github.io/vue-3d-loader-docs
MIT License
226 stars 38 forks source link

glb模型autoPlay属性失效 #18

Closed exile-yy closed 1 year ago

exile-yy commented 1 year ago

我下载之后载入glb模型添加autoPlay属性模型还是没有开启动画

exile-yy commented 1 year ago

依赖包 { "name": "vue-project", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview --port 4173" }, "dependencies": { "dat.gui": "^0.7.9", "gsap": "^3.11.3", "pinia": "^2.0.17", "three": "^0.143.0", "vue": "^3.2.37", "vue-3d-loader": "^2.1.0", "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "vite": "^3.0.4" } } 页面代码

king2088 commented 1 year ago

我下载之后载入glb模型添加autoPlay属性模型还是没有开启动画

请确保glb文件确实拥有动画属性

king2088 commented 1 year ago

依赖包 { "name": "vue-project", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview --port 4173" }, "dependencies": { "dat.gui": "^0.7.9", "gsap": "^3.11.3", "pinia": "^2.0.17", "three": "^0.143.0", "vue": "^3.2.37", "vue-3d-loader": "^2.1.0", "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "vite": "^3.0.4" } } 页面代码

确保安装的vue-3d-loader是当前最新2.1.2版本,另外经过我的测试,glb文件在2.1.2版本中autoPlay并无问题

exile-yy commented 1 year ago

依赖包 { "name": "vue-project", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview --port 4173" }, "dependencies": { "dat.gui": "^0.7.9", "gsap": "^3.11.3", "pinia": "^2.0.17", "three": "^0.143.0", "vue": "^3.2.37", "vue-3d-loader": "^2.1.0", "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "vite": "^3.0.4" } } 页面代码

确保安装的vue-3d-loader是当前最新2.1.2版本,另外经过我的测试,glb文件在2.1.2版本中autoPlay并无问题

谢谢 确实是版本问题