使用SceneKit在iOS上打开.dae文件

时间:2016-04-12 09:23:31

标签: ios objective-c swift scenekit

我想下载3D文件(.dae),然后打开,但失败了,根据以下提示:SceneKit IO:错误,此平台不支持COLLADA文件。

我在互联网上找到了一些答案,有人说你需要执行一些脚本文件,是否意味着服务器必须使用Mac,谁知道其他什么?

我在网上搜索了很长时间。但没用。请帮助或尝试提供一些如何实现此目的的想法

提前致谢。

1 个答案:

答案 0 :(得分:1)

根据AddAudioEffect(System.String activatableClassId, System.Boolean effectRequired, IPropertySet configuration),您无法在运行时直接导入.dae个文件。您应该将.scnassets个文件转换为.dae

您有两个选择:

  1. 在上传到服务器之前转换var onEnableHelpCheckChange = function() { // Checking weather checkbox is checked if ($("#enable-help").prop('checked') === true) { $('#nav-help-img').attr('src','/assets/images/help-1.png'); appendPreviousImages(); // bind custom context menu $('#helpDiv').on("mousedown", function (event) { if(isAnyPopOver2Visible){ if(!$(this).closest('#popover-output-div').length){ $('.helpBtn').popover('hide'); } isAnyPopOver2Visible = false; } }); } };个文件。所以,没有必要使用mac服务器。

  2. 订购mac服务器,配置服务器自动转换所有COLLADA文件。