iDevGames Forums
3D Models in the iPhone - Printable Version

+- iDevGames Forums (
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: 3D Models in the iPhone (/thread-1540.html)

Pages: 1 2

3D Models in the iPhone - wonza - Apr 11, 2009 09:13 AM

Im also thinking of using cheetah, but before I buy I just want to make doubly sure I will be able to use the .h method to load draw the model.

Has anyone got a small sample of a .h file that it produces?


3D Models in the iPhone - TythosEternal - Apr 13, 2009 02:11 PM

I'm at the same point in my OpenGL 3d engine right now, so this thread is a fortuitous find.

Cheetah is great, but I'm interested in finding something with support for animation keyframing and texture mapping (see above drawbacks of Cheetah in AnotherJake's post).

The OpenGL text I'm using for my main reference (the trusty implies that MD2 (Quake II) model formats are the way to go for a model structure that is flexible and widely-used. The book is a bit aged, though, so I'm wondering if there are newer formats that support a more efficient storage and retrieval of data.

RE: 3D Models in the iPhone - El_Supreme_Duderino - May 12, 2013 06:29 PM

Something to ponder:
Cheetah 3D's native file format, .jas, is actually a plist. You can rename it with the .plist extension and XCode will preview it. You can also add a Cheetah 3D file to your XCode project as is and tell XCode to interpret it as a plist (using the File Type dropdown in the File Inspector). You can set a preference in Cheetah 3D for saving text XML plists or binary plists. Xcode reads both, so a binary version is a bit more efficient size-wise.

I'm not sure any of this is of any real value yet, but I'm working on a loader for iOS that will treat the native Cheetah 3D file as a plist/NSDictionary object from which I will grab the vertex data and send it to the GPU. I'm not a pro at this, so I'm proceeding at a snail's pace.

Also, it's easy to write an exporter using JavaScript to export the data you want. I wrote an exporter that saves a trimmed-down plist with just the basic data similar to what you find in a typical .obj file. It doesn't support bones and skinning, so I'm continuing with my native loader effort.

RE: 3D Models in the iPhone - kevinvwallace - Jun 14, 2013 02:19 AM

(Mar 27, 2009 01:48 PM)kalimba Wrote:  As I understand things, there are also some modeling applications (Cheetah 3D is one) that will export model data directly to C header files (.h) that you can #include in your project.

Hey, thanks it is also helpful to me.Smile