即使纹理文件正在加载,Aframe obj 模型也未加载

Aframe obj model isn't loading even though texture files are loading

我已经在 aframe 上工作了一段时间,现在使用 google 多边形模型并遇到了一些似乎无法正确渲染的模型(在本地尝试过,纹理文件加载也是如此)。

这里是 html 代码:

<html>
<head>
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
  <a-assets>
    <a-asset-item id="chimpanzee_obj" src="Mesh_Chimpanzee.obj" ></a-asset-item>
          <a-asset-item id="chimpanzee_mtl" src="Mesh_Chimpanzee.mtl" crossorigin="anonymous"></a-asset-item>
  </a-assets>  
  <a-entity scale='.05 .05 .05' position="0 2 0" obj-model="obj: #chimpanzee_obj; mtl: #chimpanzee_mtl"></a-entity>
  <a-plane static-body position="0 -1 -4" rotation="-90 0 0" width="200" height="200" color="#7BC8A4"></a-plane>
    <a-sky color="#ECECEC"></a-sky>
    <a-camera position="0 0 5" user-height="1.6"><a-cursor src="ov.jpg"></a-cursor></a-camera>
</a-scene>

</body>
</html>

这是我的控制台的屏幕截图:

link给模特:https://poly.google.com/view/6m3diqGPysx

任何帮助将不胜感激。

这似乎是 A-Frame、three.js 或模型本身的错误。我会在 A-Frame GitHub 存储库中报告,我们可以对其进行调查。

取相同模型后converting it to glTF here,模型正确显示。

Demo

截图: