在 iOS 中加载 3D 模型 [英] Loading 3D model in iOS
问题描述
我正在使用适用于 iOS 的 xcode 从头开始创建游戏应用程序,并且我已经使用 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.
非常感谢任何帮助
此外,我的 3D 模型是使用搅拌机创建的
Also, my 3D models are created using blender
推荐答案
未来就在眼前 — SceneKit,自 v10.8 起在 OS X 中可用,将在 iOS 8 中提供.它可以直接使用 COLLADA (.DAE) 模型构建和渲染场景.无需第三方工具或代码,学习起来并不复杂.
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.
Apple 的文档非常好,但如果您愿意,请查看 其他教程可用.
Apple's documentation is pretty good but if you prefer then other tutorials are available.
这篇关于在 iOS 中加载 3D 模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!