将SceneKit场景导出为Collada .dae文件的最简单方法? [英] Easiest method to export a SceneKit scene as a Collada .dae file?

查看:80
本文介绍了将SceneKit场景导出为Collada .dae文件的最简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个算法生成的SceneKit场景,我希望能够将其导出为Collada .dae文件,例如在iBooks Author中使用。因为SceneKit可以导入Collada文件,所以我认为也许也可以导出它们,但是在API中找不到任何内容。

I have an algorithmically-generated SceneKit scene that I'd like to be able to export as a Collada .dae file, e.g. for use in iBooks Author. Since SceneKit can import Collada files, I thought there might be a way to export them too, but couldn't find anything in the API.

有没有更简单的方法这样做不写我自己的导出器,它遍历每个节点/几何体等等?

Is there an easier way of doing this short of writing my own exporter that iterates over every node/geometry etc?

推荐答案

SCNScene 具有 writeToURL:options: proxy:progressHandler: 仅OS X的方法,用于导出DAE。请记住,虽然DAE不能处理SceneKit的所有功能。另请注意,此方法在iOS中不可用。 (不过,即使您正在为iBooks Author准备内容,也不必担心。)

SCNScene has a writeToURL:options:delegate:progressHandler: OS X-only method that exports DAE. Keep in mind that DAE doesn't handle all features of SceneKit, though. Also note this method isn't available in iOS. (Though if you're preparing content for iBooks Author that's probably not a concern.)

这篇关于将SceneKit场景导出为Collada .dae文件的最简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆