Difference between revisions of "Converter"

From MegaGlest
Jump to navigation Jump to search
Line 5: Line 5:
 
The converter is needed to create .g3d-files from the xml-files from the [[exportscript]].
 
The converter is needed to create .g3d-files from the xml-files from the [[exportscript]].
  
 +
Compilation:
 +
* fix the bug in g3dv4.h ( see below )
 
'''Attention the current version of this converter still has a bug!!'''
 
'''Attention the current version of this converter still has a bug!!'''
 
   To fix the bug you'll have to add the following lines(if they aren't there) :
 
   To fix the bug you'll have to add the following lines(if they aren't there) :
Line 11: Line 13:
 
   #pragma pack(pop)
 
   #pragma pack(pop)
 
   before the #endif
 
   before the #endif
 +
* compile glexemel
  
  
  
usage (linux):
+
Usage:
* fix the bug in g3dv4.h ( see above )
+
* you'll need the binary xml2g(.exe) and the g3d.dtd-file which has to be in the current directory
* compile glexemel
+
* the xml-file you want to convert must be in the current directory
* you'll need the binary xml2g and the dtd-file which has to be in the current directory
 
* the xml-file to convert must be in the current directory
 
 
* execute xml2g <xml-in_file> <g3d-out_file>
 
* execute xml2g <xml-in_file> <g3d-out_file>
 
* now you'll have a working g3d-file.
 
* now you'll have a working g3d-file.

Revision as of 21:45, 1 May 2007

Converter ( glexemel)

glexemel download at www.glest.org

The converter is needed to create .g3d-files from the xml-files from the exportscript.

Compilation:

  • fix the bug in g3dv4.h ( see below )

Attention the current version of this converter still has a bug!!

 To fix the bug you'll have to add the following lines(if they aren't there) :
 #pragma pack(push, 1)
 near of the beginning of the file "g3dv4.h" of glexemel and
 #pragma pack(pop)
 before the #endif
  • compile glexemel


Usage:

  • you'll need the binary xml2g(.exe) and the g3d.dtd-file which has to be in the current directory
  • the xml-file you want to convert must be in the current directory
  • execute xml2g <xml-in_file> <g3d-out_file>
  • now you'll have a working g3d-file.

If your model is white, only parts are visible or it's not animating, it was probably not prepared well before exporting from blender ( see exportscript )