threejs 報錯及解決

報錯 : Uncaught TypeError: THREE.Face3 is not a constructor

         Uncaught TypeError: THREE.Geometry is not a constructor

解決 : 使用 Face3 和 Geometry需要額外加入 Geometry.js  位置在 完整threejs項目的examples/js/deprecated中

報錯:使用Geometry時出現  three.js:19380 Uncaught TypeError: Cannot read property 'tangent' of undefined

解決:可以將Geometry 修改爲 BufferGeomtry geom = geom.toBufferGeometry()

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章