Glexemel under windows

From MegaGlest
Revision as of 04:56, 2 October 2010 by Hofmic (talk) (Massive overhaul, brought uptodate, wikified, etc, etc)
Jump to: navigation, search

Glexemel is the program used to export/convert G3D models from Blender. Glexemel works under Windows in the same way as it works on Linux, but it requires a bit of knowledge to use. The easiest way to do it is to install both the export script and glexemel in the Blender script folder. To do this, copy the contents of Glexemel's bin folder and the export script into the script's directory. This directory varies depending on where you chose it to be when you installed Blender. There are a few possible locations:

  • Installation Directory: ~\Program Files\Blender Foundation\Blender\.blender\scripts
  • Appdata: ~\Users\Your Name\AppData\Local\VirtualStore\Program Files (x86)\Blender Foundation\Blender\.blender\scripts
  • Your personal directory
The option to refresh the scripts menu

Once those files are in the folder, you may have to refresh the script menu to see the export option. It will appear under File > G3D XML Exporter v1.1.

Getting Glexemel and the Export Script

The Export script and Glexemel are separate files, and must be downloaded separately. Download links are below:

Command Line Method

This is the old method of exporting to G3D, and it is strongly recommended to NOT use this method. The above method achieves the exact same results with much faster and easier work.

Exporting the Model

If Glexemel is not found when using the export script, or if using the old export script, it will instead export to a XML file, which contains data about the model, but is not a G3D file itself and cannot be used in Glest. This file must be converted to G3D using Glexemel's xml2g.exe program. Once you've exported the XML file, move it and all textures to the folder with xml2g.exe.

Converting to G3D

Note: This is done in the command line, and may be too complex for inexperienced users. If that is the point, the above method is recommended.

First of all, we need to open the command line. There are a few ways to do this. The easiest is to open Run and type "cmd", or, if on Windows Vista or 7, you can simply type cmd in the search bar of the start menu. Alternatively, there should be a link to the Command Line in the Start Menu under All Programs > Accessories > Command Prompt.

Glexemel command line.png

That's all their is to it. It's also possible to convert a G3D into a XML by using the reverse with g2xml.exe, but this is nearly useless, since there's no real reason to need to look at the XML other than to possibly edit the texture name or diffuse color of the model, both which could be done in Blender (which does have an Import Script for G3D).

See Also