【问题标题】:aframe Animations with OBJ带有 OBJ 的 aframe 动画
【发布时间】:2017-06-12 08:09:18
【问题描述】:

我已成功将模型加载到框架中。我有带骨头的动画。我想加载那个。或者可能只是关键帧。

如何将我的搅拌机骨骼动画导出到 aframe?我如何称呼这些动画?

【问题讨论】:

    标签: html blender aframe


    【解决方案1】:

    OBJ format does not support animation,因此如果要播放动画,则需要导出为其他格式。

    如果您要从 Blender 导出到 A-Frame,我的建议是使用 Three.js JSON 格式。 Three.js provides a Blender exporter for this. 一旦你有一个 JSON glTF 文件,包括你的动画,你可以使用 json-model 将文件加载到 A-Frame 中(或者也许object-model) gltf-model 组件,以及来自A-Frame Extrasanimation-mixer

    示例语法:

    <a-entity scale="0.01 0.01 0.01"
              animation-mixer
              gltf-model="src: url(./my-model.glb);">
    </a-entity>
    

    更新(11/7/2019):对于 A-Frame 0.7.0+,glTF 2.0 格式(Blender 2.8 和其他工具支持)是 A-Frame 的推荐选择。用法同上,使用gltf-model组件。

    【讨论】:

      【解决方案2】:

      您好,您无法获取 Obj 格式的动画模型。在 A-frame 中,如果您想制作动画,最好使用 JSON 或 Gltf 文件制作动画。通过This Code

      【讨论】:

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