ios:显示带有GLEssentials示例代码的简单3D模型 [英] ios : Displaying a simple 3D model with GLEssentials sample code
本文介绍了ios:显示带有GLEssentials示例代码的简单3D模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的目标是显示一个简单的3D模型并在其上应用纹理.
My goal is to display a simple 3D model and apply a texture on it.
I've downloaded the GLEssentials ios sample project to learn how to develop this (i'm new in ios OpenGL-ES API)
但是示例模型是一个.model文件,我从未听说过,也从未出现在
But the example model is a .model file, which I never heard about and which never appear in model bank websites.
- 这种文件是什么?
- 示例代码是否与其他常见模型类型(.obj,.c2d,.3ds)兼容?
- 从这个项目开始是个好主意吗?
推荐答案
看看这个问题:
在我的答案中,我描述了一个脚本和随附的Xcode项目,该项目将.obj/.mtl文件转换为适用于iOS上的OpenGL ES的头文件
In my answer, I describe a script and accompanying Xcode project that converts .obj/.mtl files to header files suitable for OpenGL ES on iOS [link].
针对您的问题:
- 我相信.model文件仅适用于示例项目,并且是Apple专有的扩展名.它很可能包含诸如顶点位置之类的简单数据.
- 我认为您很难使其他模型类型适合示例代码,这对于OpenGL ES初学者来说非常复杂.您可能想在Cocos2D上的.pod文件中查看此处.我已经看到并听到了很多很棒的事情.
- 我不推荐它:)
- I believe the .model file is only appropriate for the sample project and is a proprietary Apple extension. It most likely contains simple data such as vertex positions.
- I think you'd struggle to fit other model types into the sample code, which is very complex for OpenGL ES beginners. You might want to have a look at .pod files on Cocos2D here. I've seen and heard great things about it.
- I wouldn't recommend it :)
这篇关于ios:显示带有GLEssentials示例代码的简单3D模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文