-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
模型自适应大小有问题 #396
Comments
我也遇到了同样的问题,请教下如何解决的 |
修改模型文件,把 scale 缩放重置为 1 |
如果一个模型文件本身包含了 scale 缩放信息,加载该模型的时候导致计算相机的位置错误。
this.updateCamera(); 这里为什么不先更新模型数据,然后再计算相机的数据呢?
这里会有一个问题,如果模型本身 scale 数据为 {x: 0.001, y:0.001, z:0.001},但是调用组件时没有传入 scale prop,这样会先按 scale 0.001 计算相机的数据,然后 this.updateModel() 又将 scale 设置成了默认值 {x:1, y:1, z:1},最终展示的效果有问题
The text was updated successfully, but these errors were encountered: