且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法将Archilogic gltf模型加载到框架中

更新时间:2023-12-02 18:45:58

据我了解,您的.gltf包含对.bins和.jpg纹理的引用。
Glitch并不是那么简单,而且当您获得链接时,这些文件也不位于一个目录中。

from what I understand Your .gltf holds references to the .bins and .jpg textures.
Glitch is not that straightforward, and these files are not in one "directory", as You can see, when You get the links.

您收到的错误是由试图解析空/不存在的源文件(bin和jpg)引起的。



我认为,如果将这些文件放在服务器上,或者如果需要,将它们放在github上可能会更好(因为目录很简单)。

The error You get is caused by aframe trying to parse a null/nonexistent source file ( bins and jpgs).


I think it may be better if You put these files on Your server, or put it on github if You want (for the directories are straightforward).

您也可以更改 .gltf 文件中的文件路径,如建议的此处

You can also change the file paths in the .gltf file like suggested here.