英文:
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!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论