• Advertisement

Archived

This topic is now archived and is closed to further replies.

Object reading

This topic is 6451 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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!

Share this post


Link to post
Share on other sites
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/

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
DarkAstaroth:
http://members.home.net/erniew2/lwsdk/docs/

This is a preliminary draft of the new SDK documentation
for LightWave [6].

Share this post


Link to post
Share on other sites

  • Advertisement