加载3D模型的iOS模型、加载、iOS

2023-09-08 00:58:22 作者:抱歉丶给卟了迩想要的幸福

我从头开始创建游戏应用,其中x code为iOS,我已经使用了OpenGL的游戏谟模板来创建我的。

I'm creating a game application from scratch with xcode for iOS, and I've use the OpenGL Game projet template to create mine.

我在过去的几天里搜索了很多,但我找不到任何教程或例子就如何我将加载3D模型(通过.obj​​文件)在我的应用程序。我发现在它们加载到一个控制台脚本的应用程序的一些文档,但我需要以编程方式做到这一点。

I've searched a lot in the past few days, but I can't find any tutorials or example as to how I would load 3D model (via .obj files) in my application. I've found some documentation on loading them onto an app with a console script, but I need to do it programmatically.

任何帮助将是非常美联社preciated

Any help would be very appreciated

此外,使用搅拌机创建我的3D模型

Also, my 3D models are created using blender

推荐答案

未来将在这里短暂 - SceneKit ,因为v10.8在OS X中使用,将在iOS的8,可直接生成和渲染COLLADA(.D​​AE)场景模式。无需第三方工具或code,没有什么复杂的学习。

The future will be here momentarily — SceneKit, available in OS X since v10.8, will be in iOS 8. It can build and render a scene with COLLADA (.DAE) models directly. No need for third-party tools or code, nothing complicated to learn.

苹果的文档是pretty的不错,但如果你preFER随后的其他教程都可以。

Apple's documentation is pretty good but if you prefer then other tutorials are available.