MegaGlest Forum
Modding and game content creation => Tools => Topic started 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.
-
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
-
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 ?
-
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 )!
-
Ok. The xml file is an intermediate file format like the xml files of Ogre3D.
-
right
-
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