New .irrmesh format suggestion

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
bull
Posts: 36
Joined: Wed Sep 12, 2007 8:49 am
Location: s1Ng4p0R3

New .irrmesh format suggestion

Post by bull »

I read niko's blog and know that the new .irrmesh format is XML-based. Although it's good for interchanging data, especially exporters, it is surely slower and have more overhead than a binary format. So I suggest a "hybrid" format(like .x mesh):

For text mode:

Code: Select all

<mesh type="text">
   everything is like the current format
</mesh>
For binary mode:

Code: Select all

<mesh type="binary">
 <data size=" ... ">//size is needed because there is no such thing as a line break in binary

  binary mesh data
  </data>
</mesh>
It somehow breaks the XML rule :roll:
Post Reply