Download 3D models in iOS

I create a game application from scratch using xcode for iOS, and I use the OpenGL Game design template to create mine.

I have searched a lot in the last few days, but I can’t find any tutorials or examples of how I will upload a 3D model (via .obj files) to my application. I found the documentation on loading them into the application using the console script, but I need to do this programmatically.

Any help would be much appreciated

In addition, my 3D models are created using blender

+5
source share
5 answers

- SceneKit, OS X 10.8, iOS 8. COLLADA (.DAE). , .

Apple , , .

+3

OpensceneGraph iOS , . OBJ.

+1

( isgl3d, nineveh, Cocos3D,...) 3D-, , Opengl .

: , , , .

0

You can download the zip file from here and then run it. / obj 2opengl.pl 3DModel.obj in the terminal. He will give you a 3DModel. h as output.

You need to use glDrawArrays instead of glDrawElements since the .h file contains an array.

0
source

Obj files are simply parsed and well described on wikipedia . You should be able to download them in one or two hours. But if you want to download materials, you need to invest some more time in your engine and load the obj file.

0
source

All Articles