使用iOS Scene Kit加载未压缩的collada文件 [英] Load uncompressed collada file using iOS Scene Kit

查看:160
本文介绍了使用iOS Scene Kit加载未压缩的collada文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要加载我在iOS上下载的collada文件,我打算使用Scene Kit来完成它。但是,阅读文档,我发现XCode压缩了collada编译时的文件和Scene Kit只能加载压缩文件。

I need to load a collada file I downloaded on iOS, I intend to use Scene Kit to do it. But reading the documentation I found out that XCode compresses the collada files on compilation time, and Scene Kit can only load the compressed files.

经过一番研究后我遇到了这个文章作者能够找到XCode使用的脚本和使用它们压缩文件。问题是我无法在我的服务器上运行它们。

After some research I ran into this article where the author was able to find the scripts XCode uses and compress the files using them. The problem is that I'm not being able to run them on my server.

所以我的问题是:有没有其他方法使用场景工具包加载collada文件?或者在哪里我可以找到自己进行压缩的算法?

So my question is: Is there any other way to load collada files using scene kit? Or is there somewhere where I can find an algorithm to do the compression myself?

推荐答案

如果您无法上传压缩文件你的服务器无法在服务器上动态转换它们,我担心你必须手动解析Collada文件并自己实例化所有的SceneKit对象。

if you can't upload compressed files on your server and cannot convert them on the fly on the server, I'm afraid that you will have to manually parse the Collada files and instantiate all the SceneKit objects yourself.

这篇关于使用iOS Scene Kit加载未压缩的collada文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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