Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: GLTFLoader加载有额外纹理配置的gltf模型#95

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Linefate wants to merge1 commit intowechat-miniprogram:master
base:master
Choose a base branch
Loading
fromLinefate:fix/gltf-loader

Conversation

Linefate
Copy link

@LinefateLinefate commentedMay 9, 2023
edited
Loading

修复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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@Linefate

[8]ページ先頭

©2009-2025 Movatter.jp