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加载有额外纹理配置的gltf模型 #95

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

Conversation

Linefate
Copy link

@Linefate Linefate commented May 9, 2023

修复GLTFLoader加载有额外纹理配置的gltf模型时报错:

  • 原因:

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

  • 修复方式:

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

  • 复现方式
    可以使用 xr-frame 那边提供的这个模型这个模型

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

报错截图:
image

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.

None yet

1 participant