three.js - AR.js 和 aframe 管理我的 .gltf 位置和尺寸
问题描述
我是 ar.js 和 Aframe 的新手,我在一个 gltf 对象的 hito 模式上编写了一个简单的代码表单 displat:
<!-- include A-Frame obviously -->
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs>
<!-- define your gltf asset -->
<a-assets>
<a-asset-item id="tree" src="models/gltf/manovella.gltf"></a-asset-item>
</a-assets>
<a-entity gltf-model="#tree"></a-entity>
<!-- define a camera which will move according to the marker position -->
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</body>
所有作品都在用餐,我的对象变得可见,但太小且位置错误:
我尝试在 aframe 文档中搜索有关 a-asset-item 的信息,但找不到有关位置尺寸和旋转的 anityng。
有人可以帮助我了解如何管理我的对象的外观?
非常感谢提前
解决方案
推荐阅读
- deployment - 在 Azure Devops 中使用 Munits 部署项目时出现问题
- r - 子集 a 并按数据框分组,在 r 中具有多个条件和多个标准
- rust - 如何在 Rust 中执行要求输入的命令
- python - Django 在索引页面上显示帖子,每个帖子下都有几个答案(由外键链接)
- c - 在 Lexer/Bison 中识别系统库命令的最佳方法
- teamcity - TeamCity 仅更新某些程序集版本
- algorithm - 所有大小为 A x B 的 2D 子数组的最大值
- c++ - 以下线程代码是否存在任何潜在的内存泄漏或死锁?
- mongodb - 在 mongodb 容器中创建多个访问用户
- php - 如何在 Laravel 的资源控制器的方法中自动添加条件?