[ODE] XML ODE Data Interchange Format (revision 5)

Jon Watte hplus-ode at mindcontrol.org
Sat Mar 13 09:07:38 MST 2004


Another approach is to use the CDATA for vertices:

<vertices format="x,y,z">
0,1,2
1,2,3
</vertices>

Also, putting the x, y and z as attributes of the "v" tag seems a poor choice if file size is what you want. If you don't like using linefeeds or other separators in your CDATA for some reason, try this:

<vertices format="x,y,z">
<v>1,2,3</v>
<v>2,3,4</v>
</vertex>

Which may be a happy medium. Anyway, on previous work, I've found that putting the template/format of vertex/array data in the description is a Really Good Thing, because you WILL want to add more attributes that are only valid in certain arrays.

Just because XML is structured doesn't mean that all data should be accessible using the XML structure (attributes and elements). CDATA is there for a reason, you know :-)

Cheers,

			/ h+


-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Chris
Gregan
Sent: Saturday, March 13, 2004 7:05 AM
Cc: ode at q12.org
Subject: Re: [ODE] XML ODE Data Interchange Format (revision 5)


I am using my own XML format to represent physical geometry in an FPS. 
For large tri-mesh style meshes I found it to be a good idea to use a 
"v" tag instead of the full "vertex" to keep the file size down. 
Similarly for indices. I think it is still clear what is intended. I 
haven't followed this discussion too closely so apologies if this has 
been mentioned already.

<vertices>
    <v x="0" y="1" z="1" />
    <v x="1" y="2" z="2" />
    <v x="2" y="0" z="1" />
</vertices>

Cheers,

Chris Gregan

William Denniss wrote:

>I have made another revision to the XODE spec, taking on board the
>comments received to date, and filling in the areas marked as "TODO".
>
>You can download it here: http://tankammo.com/xode/xode.txt
>Updated extensions here: http://tankammo.com/xode/xode-extensions.txt
>And past versions listed here: http://tankammo.com/xode/
>
>I hope that we are getting close to the final version, so please if you
>have any comments, send them in!  I need to know if there is something
>missing that would prevent you from using it, or something incorrectly
>defined, or anything else that needs improvement.  If you have already
>made a suggestion which I have inadvertently missed or forgotten about,
>I apologise and hope that you please raise it again.
>
>Thank you everyone who has helped thus far.
>
>Cheers,
>
>Will.
>
>  
>

_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list