用Blender导出了json格式的模型,如果导出时加了scene,用THREE.ObjectLoader()进行加载,不报错,无警告,但页面白板,没有模型。
如果导出时没有添加scene,用THREE.JSONLoader()进行加载,总提示错误
Uncaught TypeError: Cannot read property 'length' of undefined
at parseModel (three.js:36302)
at JSONLoader.Object.assign.parse (three.js:36710)
at Object.onLoad (three.js:36233)
at XMLHttpRequest.<anonymous> (three.js:30794)
错误行代码在three.js里:zLength = vertices.length;
但是json里根本没有 vertices这一项
是不是导出时设置有问题
相关分类