MegaGlest Forum

Modding and game content creation => Tools => Topic started by: greg on 7 May 2010, 08:52:41

Title: Where can i find the .g3d file format specs ?
Post by: greg on 7 May 2010, 08:52:41
Hi,

Where can i find the file format specs of 3D models (.g3d) ?
The file format is binary.

Thanks.
Title: Re: Where can i find the .g3d file format specs ?
Post by: titi on 7 May 2010, 11:41:27
There is no real spec for this.
Best is you look into the code. Especially the xml2g g2xml things from the glexemel tools will quickly tell you whats going on and the xml-g3d-format itself is very informative too. I wrote a JME(JMonkey) converter for java using this xml-format and informations based on the things I found there.

glexemel: ( its a tool to convert xml->g3d  or g3d->xml )
http://www.glest.org/files/contrib/tools/glexemel-0.1a.zip

some more interisting things I made are here:
https://forum.megaglest.org/index.php?topic=4831.msg36592#msg36592
Title: Re: Where can i find the .g3d file format specs ?
Post by: greg on 7 May 2010, 12:25:44
I have downloaded glest v3.2.2.
All models seems to be in binary format.
Is xml format used only in the future developpement version of glest ?
Title: Re: Where can i find the .g3d file format specs ?
Post by: titi on 7 May 2010, 13:27:04
it is used while exporting from blender to .g3d.
This is not done in one step. First an xml is created then it is converted to .g3d using the mentioned tools.

But these tools can also convert g3d to xml ( g3d2xml )!
Title: Re: Where can i find the .g3d file format specs ?
Post by: greg on 7 May 2010, 14:34:29
Ok. The xml file is an intermediate file format like the xml files of Ogre3D.
Title: Re: Where can i find the .g3d file format specs ?
Post by: titi on 7 May 2010, 14:48:45
right
Title: Re: Where can i find the .g3d file format specs ?
Post by: Yggdrasil on 8 May 2010, 11:06:04
Here are the specs:
https://forum.megaglest.org/index.php?topic=713

older one, not sure if every model uses v4:
https://forum.megaglest.org/index.php?topic=215.0