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

fix: GLTFloader #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Linefate
Copy link

修复GLTFLoader加载gltf模型时报错:

- 原因:

微信小程序不支持Blob 对象, URL对象

- 修复方式:

使用 base64 编码的字符串来创建 data URI

- 复现方式
可以使用这个模型

https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/butterfly/index.glb

报错截图如下
image

image

@bear-shchan
Copy link

太感谢了!刚好遇到这个问题;

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

Successfully merging this pull request may close these issues.

2 participants