装载iOS上一个OBJ文件的最佳方法文件、方法、iOS、OBJ

2023-09-07 22:37:07 作者:初

由于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.

推荐答案

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