【问题标题】:how to make the model glft center in Aframe?如何在 Aframe 中使模型 glft 居中?
【发布时间】:2019-10-20 01:13:42
【问题描述】:

我试图让我的模型 gltf 在它点击到 VR 模式之前居中,但没有显示我在实体内设置位置的想法

是这样的

       <div class="" style="height: 800px; width: 900px">
            <a-scene embedded>
                <a-assets>
                    <a-asset-item id="tree" src="static/models/Box/Box.gltf"></a-asset-item>
                </a-assets>

                <a-gltf-model src="#tree" camera position="0 1.6 0"></a-gltf-model>
<!-- <a-entity camera gltf-model="#tree" position="0 1.6 0"></a-entity> -->
            </a-scene>
        </div>

【问题讨论】:

    标签: aframe gltf


    【解决方案1】:

    如果您想放置 gltf 模型的轴心,您需要在 3D 建模程序中执行此操作,然后再次导出 gltf。 Aframe 使用中心作为 gltf 导入的枢轴位置。

    【讨论】:

      猜你喜欢
      • 2021-05-17
      • 1970-01-01
      • 1970-01-01
      • 2018-12-25
      • 2021-04-20
      • 2021-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多