SceneKit中的COLLADA转换 [英] COLLADA transformations in SceneKit
问题描述
我们尝试在Xcode中为模型制作查看器,并使用SceneKit渲染模型。如果我们将COLLADA(.dae)文件添加到Xcode,它会使用 scntool
将模型转换为 c3d
格式(找到这个在网上)。但是我们想在运行时加载模型(我们将它们从服务器下载到iOS设备)。我们如何将 .dae
转换为此格式而不是Mac OS?我们的服务器运行Ubuntu,我们可以转换模型并将其转换为已经转换为iOS设备。
We try to make viewer for models in Xcode and use SceneKit to render model. If we add COLLADA (.dae) file to Xcode, it transforms the model using scntool
to c3d
format (found this on the Internet). But we want to load models in runtime (we download them from server to iOS device). How can we transform .dae
to this format not from Mac OS? Our server running Ubuntu, we can transform model and send it already converted to iOS devices.
非常感谢!
推荐答案
你可以手动运行 scntool
,但是你需要一台运行OS X的机器才能这样做。 SceneKit在iOS上使用的压缩格式没有记录,也没有其他工具可用于进行转换。
you can run scntool
manually but you'll need a machine running OS X to do that. The compressed format used by SceneKit on iOS is not documented and there is no other tool that you can use to make the conversion.
这篇关于SceneKit中的COLLADA转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!