【发布时间】:2018-10-17 14:52:41
【问题描述】:
我正在构建一个使用 django 和 Aframe 框架的应用程序。这个想法是在我遍历到新页面时加载一个苹果对象(包括 .obj 和 .mtl 文件)。问题是我 Django 给了我以下警告:Not Found: /education/Apple.mtl. 我已将该对象放在与要加载的 html 页面相同的文件夹中。问题是,尽管 enitre html 文件运行正常,但当我在 Django 中运行 obj 文件时似乎没有加载它们,但它们通常在 Just run through 在网络浏览器上运行时运行。所以主要问题是: Django 是否支持渲染 obj 文件,如果支持,那么到底是什么问题?请帮忙。提前致谢。 这是截图和代码。
The file directory structure and the error in the console
<html>
<head>
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-entity obj-model="obj: apple.obj; mtl: apple.mtl; scale: 0.1 0.1 0.1; position: 0 5 -2" ></a-entity>
<a-entity position="0 70 150">
<a-camera></a-camera>
<a-entity>
</a-scene>
</body>
</html>
【问题讨论】: