XML. (was: Re: [ODE] outputting objects)

Shaul Kedem shaul_kedem at yahoo.com
Wed Feb 5 02:08:02 2003


I suggest using the following format:

 <Camera>
   <Position x="0" y="2" z="0" xrot="20" yrot="10"
zrot="20"/>
 </Camera>

 This model has some benefits:
 1. you can assign default values to the entries (for
example, if your rotation is always 0,0,0 - don't
enter it at all)
 2. attributes does not have order relation in an XML
tag, meaning: you can write "x=.. y=.." or "y=.. x=.."
without problems
 3. distinguishing x,y and z instead of writing "0 2
0"beneficialtial in order to have more flexibility
using the format.

Shaul.

p.s.: I don't know if XML is the format, but the
request was for XML information, and thats why I
emailed the list.

--- Anselm Hook <anselm@hook.org> wrote:
> 
> > Here is a simple little world file from my engine,
> just a test world to test lighting:
> >
> > <World Gravity="3.71">
> > 	<Camera Position="0 2 0" />
> > 	<Light Style="Directional" Position="50 50 50" />
> > 	<StaticEntity Position="0 1 -70" Angle="0 0 0"
> File="Structure\Gastanks\1.lwo" />
> > </World>
> 
> Clearly this works - it seems like a perfectly fine
> solution for others if
> so...  I was arguing for an automated approach
> simply because I didn't
> like the thought of the labor of typing in all of
> the cases.
> 
> Looks like you define some other things outside the
> scope of ODE.  And
> looks like you use a dynamics engine neutral
> notation - which is probably
> a good thing.
> 
>  - a
> 
> 
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com