gpt4 book ai didi

swift - 如何将 Blender 中制作的动画加载到 ARKit?

转载 作者:行者123 更新时间:2023-11-28 05:44:19 24 4
gpt4 key购买 nike

我在 Blender 中制作了一个 3D 对象并为其制作了一些自定义动画。但是,我设法将对象加载到场景中,而不是动画。

This is what it appears to me at the Entities tab

我在搜索“How to load custom animations in ARKit”,但除此链接外找不到任何内容: https://blog.pusher.com/animating-3d-model-ar-arkit-mixamo/

在那里它告诉你如何使用 Mixamo 下载和播放一些动画,但我想加载我在 Blender 中制作的动画。

郑重声明,我是 ARKit 编程领域的新手,我正在自学。

有什么建议吗?提前致谢!

最佳答案

当我们谈论动画时,最好在 SceneKit 的上下文中谈论和 Core Animation框架。

Apple 是这样说的:

SceneKit also uses CAAnimation objects for animations created using external 3D authoring tools (3dsMax, Maya, Blender) and saved in scene files. For example, an artist might create a game character with animations for walking, jumping, and other actions. You incorporate these animations into your game by loading animation objects from the scene file using the SCNSceneSource class and attaching them to the SCNNode object that represents the game character.

但请记住:您需要将动画导出为 .dae 文件格式。并且您的动画必须被烘焙(您需要将所有动画和变形转换为时间轴上的关键帧(对于每一帧),无论动画是如何完成的)。

关于swift - 如何将 Blender 中制作的动画加载到 ARKit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55459579/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com