Author Topic: Where can i find the .g3d file format specs ?  (Read 2373 times)

greg

  • Guest
Where can i find the .g3d file format specs ?
« 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.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Where can i find the .g3d file format specs ?
« Reply #1 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
« Last Edit: 7 May 2010, 11:44:10 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

greg

  • Guest
Re: Where can i find the .g3d file format specs ?
« Reply #2 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 ?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Where can i find the .g3d file format specs ?
« Reply #3 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 )!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

greg

  • Guest
Re: Where can i find the .g3d file format specs ?
« Reply #4 on: 7 May 2010, 14:34:29 »
Ok. The xml file is an intermediate file format like the xml files of Ogre3D.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Where can i find the .g3d file format specs ?
« Reply #5 on: 7 May 2010, 14:48:45 »
right
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Where can i find the .g3d file format specs ?
« Reply #6 on: 8 May 2010, 11:06:04 »