-
Notifications
You must be signed in to change notification settings - Fork 231
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
Error: THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported. Use LegacyGLTFLoader instead. #33
Comments
发现是因为升级了微信开发者工具后出现了这个报错,原来的版本1.03.2006090可以运行,升级到1.03.2009140后就出现这个报错了,但真机测试没问题 |
@ele828 麻烦看看这个问题,这边也遇到了这个问题 |
emm, 试了一下手动 wx.request({
url,
method: 'get',
header: {
// 'content-type': 'text/plain; charset=x-user-defined',
// 'accept-charset': 'x-user-defined'
},
responseType: 'arraybuffer',
success (res) {
console.log(resourcePath)
try {
scope.parse(res.data, resourcePath, function (gltf) {
onLoad(gltf);
}, _onError);
} catch (e) {
_onError(e);
}
},
fail (e) {
}
}) |
@yangger6 贴图最后怎么解决的呢 |
I'd really like to know what you were discussing here, as I'm perhaps facing a similar issue. |
克隆示例代码后运行报错,看似是glTF版本问题,有人碰到过吗?
The text was updated successfully, but these errors were encountered: