iDevGames Forums
3D Models on IPhone - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: 3D Models on IPhone (/thread-1926.html)



3D Models on IPhone - haudio - Jan 11, 2009 07:02 PM

Hey Guys,

I was curious to hear about any formats you guys prefer for 3D models. I'm familiar with ms3d and .x files on windows but I haven't written a loader in eternity. It might be time for me to do so Smile

Are there any formats that work particularly good for the iPhone? I'd like to hear good stories and bad so I can make an educated decision.

I'm all ears!


3D Models on IPhone - Zwilnik - Jan 11, 2009 08:03 PM

Your own format is generally the best plan for a game as it means you can tweak to your hearts content to optimise it to suit what you're doing with the data.

Having said that, .obj and .fbx are usually popular (even if you use them as starting points for data to convert to your format) as they're both pretty universal now. obj is simpler, fbx is more comprehensive.


3D Models on IPhone - haudio - Jan 12, 2009 12:21 AM

Yeah I understand that your own format would give you the added flexibility of tweaking the format to your spec, however that also would mean I'd need to write an exporter for the likes of maya, max, xsi, or whatever format the artist is familiar with.

I also must admit I don't really understand what benefits a unique structure would give me. Can you give me a better example?

Between obj and fbx I assume any of the major modeling packages can export into those formats? Is one better than the other?

My end goal is to create a fairly "generic" engine that I can use to build a few different 3d game ideas I had.


3D Models on IPhone - riruilo - Jan 12, 2009 02:42 AM

haudio Wrote:Hey Guys,

I was curious to hear about any formats you guys prefer for 3D models. I'm familiar with ms3d and .x files on windows but I haven't written a loader in eternity. It might be time for me to do so Smile

Are there any formats that work particularly good for the iPhone? I'd like to hear good stories and bad so I can make an educated decision.

I'm all ears!

Read this (so I don't write it twice)
http://www.idevgames.com/forum/showthread.php?t=16526


3D Models on IPhone - AnotherJake - Jan 12, 2009 09:05 AM

In addition to riruilo's post in the other thread, Cheetah3D also has a .h export to paste the geometry right into your code.

haudio Wrote:Between obj and fbx I assume any of the major modeling packages can export into those formats? Is one better than the other?

fbx is starting to be used everywhere, but Maya/Max for sure, since fbx was developed by Autodesk. fbx is best if you can figure out how to use it, and perhaps convert data for your own needs.

obj is literally everywhere (originally developed by Alias, who used to own Maya). obj has been around forever and is still widely used in games. I use it myself for static geometry.

The difference between the two is vast. obj only handles static geometry and is simple, whereas fbx handles all kinds of stuff and is complicated, but the biggest advantage for games in fbx is skeletal animation info.

The problem with any existing format is that you have to process it on load. If you use your own format you can store it and load it much more efficiently.


3D Models on IPhone - haudio - Jan 13, 2009 10:06 PM

Cool thanks for the info. Has anyone had any experience with Collada? I hear it's a pretty good format and is quickly becoming the favorite format for many people... Any pros & cons using Collada?


3D Models on IPhone - riruilo - Jan 14, 2009 03:17 AM

haudio Wrote:Cool thanks for the info. Has anyone had any experience with Collada? I hear it's a pretty good format and is quickly becoming the favorite format for many people... Any pros & cons using Collada?

If you want to know something about COLLADA, you may start reading my Master Thesis and testing my program.
http://sourceforge.net/projects/colladaloader/

Hope this helps.