装载iOS上一个OBJ文件的最佳方法 [英] Best way to load a obj file on iOS

查看:750
本文介绍了装载iOS上一个OBJ文件的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于OpenGL的没有像GLLoadObjFile('myModel.obj');,什么是负载像.OBJ一个3D模型文件中的一个iOS应用的最好的教程任何功能?

Since OpenGL doesn't have any function like GLLoadObjFile('myModel.obj');, What's the best tutorial to load a 3d model file like .obj in a iOS app?

我已经试过了波前装载机,但它似乎并不奏效。

I've tried the wavefront loader but it doesn't seem to be working.

推荐答案

<一个href="https://github.com/jlamarche/iOS-OpenGLES-Stuff/tree/master/Wavefront%20OBJ%20Loader">https://github.com/jlamarche/iOS-OpenGLES-Stuff/tree/master/Wavefront%20OBJ%20Loader

这是装载机似乎pretty的体面,支持从搅拌机甚至材料,虽然它使用OpenGL ES 1,装载机类应该很好地工作在ES 2

It's loader seems pretty decent, supporting even materials from blender, though it uses OpenGL ES 1, the loader classes should work perfectly in ES 2

这篇关于装载iOS上一个OBJ文件的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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