Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载gltf文件后报错 #13

Open
cyl0430 opened this issue Mar 21, 2023 · 0 comments
Open

加载gltf文件后报错 #13

cyl0430 opened this issue Mar 21, 2023 · 0 comments

Comments

@cyl0430
Copy link

cyl0430 commented Mar 21, 2023

使用 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant