Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading 3D model in iOS

I'm creating a game application from scratch with xcode for iOS, and I've use the OpenGL Game projet template to create mine.

I've searched a lot in the past few days, but I can't find any tutorials or example as to how I would load 3D model (via .obj files) in my application. I've found some documentation on loading them onto an app with a console script, but I need to do it programmatically.

Any help would be very appreciated

Also, my 3D models are created using blender

like image 280
TurnsCoffeeIntoScripts Avatar asked Oct 09 '22 09:10

TurnsCoffeeIntoScripts


2 Answers

The future will be here momentarily — SceneKit, available in OS X since v10.8, will be in iOS 8. It can build and render a scene with COLLADA (.DAE) models directly. No need for third-party tools or code, nothing complicated to learn.

Apple's documentation is pretty good but if you prefer then other tutorials are available.

like image 64
Tommy Avatar answered Oct 12 '22 00:10

Tommy


OpensceneGraph has support for iOS and a lot of prebuilt code which can help you develop the game. It supports loading OBJ models.

like image 43
whatnick Avatar answered Oct 12 '22 00:10

whatnick