threejs.miniprogram icon indicating copy to clipboard operation
threejs.miniprogram copied to clipboard

加载gltf文件后报错

Open cyl0430 opened this issue 2 years ago • 0 comments

使用 GLTFLoader 加载gltf文件后,报错 ` const gltfLoader = new GLTFLoader(); gltfLoader.load('https://threejsfundamentals.org/threejs/resources/models/cartoon_lowpoly_small_city_free_pack/scene.gltf', (gltf) => { const root = gltf.scene; scene.add(root);

}, (e) => { console.log('loading') }); `

报错提示为:XMLHttpRequest is not a constructor

cyl0430 avatar Mar 21 '23 02:03 cyl0430