加载.glb模型在Simplify Modifator(three.js)中的问题。

huangapple go评论87阅读模式
英文:

The problem with load .glb model in Simplify Modifator (three.js)

问题

我正在尝试使用Simplify Modifator,但每次上传我的.glb文件(我已经尝试了数十个文件,也尝试了直接来自three.js示例的不同模型,除了默认设置的一个之外,都不起作用),每次加载时都会出现以下错误:

无法读取未定义的属性(读取'clone')

我只使用了具有一个材质(无纹理)的模型,我做错了什么,谢谢帮助。

英文:

I'm trying to use Simplify Modifator, but every time I upload my .glb file I've tried dozens of them, I've also tried different models directly from the examples in three.js, and none of them work except for the one that is defautlly set there), it gives me this error every time I load it:
> Cannot read properties of undefined (reading 'clone')

I'm only using models with one material (no textures), what am I doing wrong, thanks for the help.

答案1

得分: 0

我找到了解决问题的方法。模型必须由一个整体网格组成,作为一个组件,不应包含多个组。它还需要清除像灯光、相机等元素,有时在原生的3D软件中默认设置的元素。希望这对你有所帮助!

英文:

So I figured out how to solve the problem. The model must be composed of a whole mesh, as one component, it should not contain multiple groups. It also needs to be cleaned of elements like light, cameras, etc that you sometimes have defautlly set in native 3D software. Hope this helps you!

huangapple
  • 本文由 发表于 2023年6月26日 14:16:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76553965.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定