vue-3d-model
vue-3d-model copied to clipboard
📷 vue.js 3D model viewer component
Bumps [vue-tsc](https://github.com/johnsoncodehk/volar/tree/HEAD/packages/vue-tsc) from 0.34.17 to 0.40.1. Changelog Sourced from vue-tsc's changelog. 0.40.1 (2022/8/11) fix: component context types missing in template if no script block (#1688) fix: organize imports added invalid...
!!非常重要
https://hujiulong.github.io/vue-3d-model/#/demo-basic 在这个演示中将人物转动背面好暗,只有在旋转模式下才可以
加载 glb 模型可以显示,但是模型没有动画。
Bumps [three](https://github.com/mrdoob/three.js) from 0.141.0 to 0.143.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [@types/three](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/three) from 0.141.0 to 0.143.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
  第一个图为较大模型,改了缩放后,第一个好了 ,第二个又变的太小了
如果一个模型文件本身包含了 scale 缩放信息,加载该模型的时候导致计算相机的位置错误。 [ this.updateCamera();](https://github.com/hujiulong/vue-3d-model/blob/49769d7a085abbd483beaa557e374af87ff658c9/src/model-mixin.vue#L462) 这里为什么不先更新模型数据,然后再计算相机的数据呢? 这里会有一个问题,如果模型本身 scale 数据为 {x: 0.001, y:0.001, z:0.001},但是调用组件时没有传入 scale prop,这样会先按 scale 0.001 计算相机的数据,然后 this.updateModel() 又将 scale 设置成了默认值 {x:1, y:1, z:1},最终展示的效果有问题
我在h5移动端中使用,部分模型展示不全,我使用scale: { x: 0.8, y: 0.8, z: 0.8 },进行缩放模型 模型贴近canvas底部 并不居中怎么解决