Javascript Three.js不是Three.Object3D的实例
我需要你的帮助。这是你的密码 c9: 或者(http://)zixxus-github-io-zixxus.c9.io/ 和吉特: Myconsole:Javascript Three.js不是Three.Object3D的实例,javascript,three.js,Javascript,Three.js,我需要你的帮助。这是你的密码 c9: 或者(http://)zixxus-github-io-zixxus.c9.io/ 和吉特: Myconsole: "THREE.WebGLRenderer" "69" three.js:17679 "THREE.WebGLRenderer: .setClearColorHex() is being removed. Use .setClearColor() instead." three.js:18158 "THREE.Object3D.add:" Ob
"THREE.WebGLRenderer" "69" three.js:17679
"THREE.WebGLRenderer: .setClearColorHex() is being removed. Use .setClearColor() instead." three.js:18158
"THREE.Object3D.add:" Object { uuid: "648CCB0D-90E4-4E8B-A464-26AA086638FF", name: "", type: "Geometry", vertices: Array[8], colors: Array[0], faces: Array[12], faceVertexUvs: Array[1], morphTargets: Array[0], morphColors: Array[0], morphNormals: Array[0], 19 more… } "is not an instance of THREE.Object3D." three.js:7562
编辑我认为JSONLoader的回调会得到一个几何体对象,因此需要创建一个网格
var lod = new THREE.JSONLoader();
lod.load('js/model/untitled.json',function(obj){
scene.add(new THREE.Mesh(obj));
});
但是我还没有测试过它。“THREE.WebGLRenderer”“69”THREE.js:17679“THREE.WebGLRenderer:.setClearColorHex()正在被删除。请改用.setClearColor()。“THREE.js:18158这并不是阻止它工作的原因。没有其他错误吗?没有其他错误,在转换bledner->json时可能有任何错误?