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.
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.
I have used a library called Ninevegl. It is pretty good and supports file formats like .obj and .dae. It is very easy to use and they have nicely explained documentation. Here is the link.
http://nineveh.gl/downloads/
I built a Perl/Xcode project for loading .obj and .mtl files into OpenGL ES 2.0 on iOS, available here. It's called
mtl2opengl
and you can see comments/results from other S.O. users in these similar questions:https://github.com/jlamarche/iOS-OpenGLES-Stuff/tree/master/Wavefront%20OBJ%20Loader
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