• Advertisement

Archived

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

Parsing ASCII graphic formats

This topic is 6554 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

The DXF file format is a beautiful format for parsing, but artistic graphical packages rarely export splines to dxf, but rather breaks them into sublines. Does anyone know of a moderately popular ASCII graphic format, that idealy properly saves bezier splines? Oddball Software
http://zap.to/oddball

Share this post


Link to post
Share on other sites
Advertisement
The iges (.iges or .igs) format is very popular among professional CAD packages, and it is also ascii based. Although it carries an awful lot of information it is very easy to extract objects of a particular kind such as lines, arcs,splines,nurb surfaces etc etc.

Take a look at this line from an iges file:

110,-0.9,2.4,1.5,-1.01481,2.37717,1.5;

object 110 is a line, followed by sx,sy,sz,ex,ey,ez.

You''ll have to look very hard for information on this subject because it is one of those professionally managed data formats. But I do have a list of object descriptions/id numbers somewhere if you need it.

BTW If you do crack this format let me know!!

Matt

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Greetings!

Softimage''s XSI file format is wonderfull to read and very easy to parse. Plus, the code for a parser is provided with the SDK so you can easily adapt it to your game engine and optimize it if you only need to import certain types of geometry. You can get more info at www.softimage.com, go to Products and Softimage 3D SDK.

Cheers,

Michel Bastien
mbastien@sympatico.ca

quote:
Original post by Joshua Schpok

The DXF file format is a beautiful format for parsing, but artistic graphical packages rarely export splines to dxf, but rather breaks them into sublines. Does anyone know of a moderately popular ASCII graphic format, that idealy properly saves bezier splines?

Oddball Software
http://zap.to/oddball


Share this post


Link to post
Share on other sites

  • Advertisement