ios 如何在 SceneKit 中将 .dae 转换为 .scn 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31627965/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 06:58:53  来源:igfitidea点击:

how to convert .dae to .scn files in SceneKit

iosscenekitcollada

提问by potato

This is a screenshot from Apple's Fox sample code. As you can see, they use .scn file format for graphics object. They explicitly state in the wwdc2015 video that this was done by an artist. So far I only worked with .dae and was until recently convinced that this is the only supported format. My question is, how do I export objects stored in .dae file to .scn file?

这是来自 Apple 的 Fox 示例代码的屏幕截图。如您所见,它们使用 .scn 文件格式作为图形对象。他们在 wwdc2015 视频中明确指出这是由一位艺术家完成的。到目前为止,我只使用 .dae 并且直到最近才确信这是唯一支持的格式。我的问题是,如何将 .dae 文件中存储的对象导出到 .scn 文件?

enter image description here

在此处输入图片说明

EDIT: this is what I get if go to Editor-> Convert to SceneKit scene file format (.scn)

编辑:如果转到编辑器-> 转换为 SceneKit 场景文件格式 (.scn),这就是我得到的

enter image description here

在此处输入图片说明

采纳答案by l'L'l

Exporting the .daeis unnecessary; you can place the object directly into a .scnfile:

导出.dae是不必要的;您可以将对象直接放入.scn文件中:

enter image description here

在此处输入图片说明

Create the new .scnfile in the .scnassetsfolder, then drag the .daefile into the scene.

.scn文件.scnassets夹中创建新文件,然后将.dae文件拖到场景中。

回答by mnuages

open your DAE file in the SceneKit scene editor, then go to the Editor menu and click "Convert to scn file format".

在 SceneKit 场景编辑器中打开您的 DAE 文件,然后转到编辑器菜单并单击“转换为 scn 文件格式”。

Your artist won't be able to export a scn file from their favourite tool. You'll have to use Xcode to convert a DAE to SCN.

您的艺术家将无法从他们最喜欢的工具中导出 scn 文件。您必须使用 Xcode 将 DAE 转换为 SCN。