Skip to content

gltf格式模型加载显示问题 #118

Discussion options

You must be logged in to vote

这个文件图片的base64太长了都6M了,浏览器或者小程序对URL的长度通常有限制,但是这个限制的具体数值可能会因不同的操作系统或者小程序封装而异。一般来说,URL的长度限制在2,048个字符左右是比较常见的。超过这个长度的URL可能会被截断或导致加载错误。因此解决方法是将glTF文件的图片从 base64 替换成正常的 url,重新生成新的 glTF 文件,保证各平台兼容性。

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@luoyue123ddddddddddd
Comment options

@zhuxudong
Comment options

Answer selected by zhuxudong
@luoyue123ddddddddddd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Engine
Labels
None yet
3 participants