Skip to main content
gamedev.net
🔒 Locked

Object reading

Started by David20321 6 replies 600+ views
Original Post
David20321
David20321
From looking at this forum it seems that whenever people want to know how to load objects you all tell them to use 3d exploration (which is PC only) or write their own object loading code. Does anybody know how to load objects from any common 3d format on a mac? If you have examples they would help a lot. Thanks.
AnalGoat
AnalGoat
I think that file formats are essentially cross-platform. You can use a .3DS or .ASC file on a mac. I used .ASC files for a project in school (damn school still uses G3''s!). If you''re looking for a file converter like 3DExploation for the mac i can''t help ya there though. Loading files is the same though. Cheers!
David20321
David20321
Could you tell me how to load an object in .ASC format?
Bordem
Bordem
this site has a bunch of 3d file formats http://www.swin.edu.au/astronomy/pbourke/3dformats/

plus you can check wotsit it has all the file formats you could want
http://www.wotsit.org/

Im Always Bored--Bordem ICQ: 76947930
DarkAstaroth
DarkAstaroth
I wrote my own little file converter for Lightwave 5.x models in RealBasic (on the Mac) ... pretty easy really - just a coupla hours with the SDK (Check flay.com)
Although now I need to find some info on the newer/updated LW6 file format ... anyone here got any info?
"You think that''s air your breathing now?"
AnalGoat
AnalGoat
Reading an .ASC file is easy, it''s only a text file. Just read through the actual file and you''ll learn the format. It''s essentially:

number of verticies
number of triangles
vertex list
triangle list

Hope This helps!
David20321
David20321
Does anyone have an example in source of how to do this? I''m pretty new to c and i''m pretty shaky on my file reading.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.