加载3D模型的iOS [英] Loading 3D model in iOS

查看:951
本文介绍了加载3D模型的iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从头开始创建游戏应用,其中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

推荐答案

未来将在这里短暂 - <一个href="https://developer.apple.com/library/$p$prelease/ios/documentation/SceneKit/Reference/SceneKit_Framework/"相对=nofollow> 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.

这篇关于加载3D模型的iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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