is an asset pipeline tool to convert models (exported from blender) from obj to VS bfxm format.
UnitConverter for Python 2 Source on GitHub
https://github.com/vegastrike/Tools/tre ... tConverter
UnitConverter for Python 3 Source on GitHub
https://github.com/vegastrike/Tools/tre ... Converter3
UnitConverter Manual on Vega-Strike Wiki
https://wiki.vega-strike.org/Developmen ... tConverter
UnitConverter Manual PDF with UI Screen Shots
https://github.com/vegastrike/Tools/blo ... Manual.pdf
UnitConverter on GitHub Wiki
https://github.com/vegastrike/Vega-Stri ... tconverter
UnitConverter Discussion Thread on Vega-Strike Forums
https://forums.vega-strike.org/viewtopi ... 20&t=11885
--- updated by pyramid on 2020-05-07 ---
* updated original post urls to new servers and code repository
--- original post by pyramid on 2008-08-09 01:09 ---
The purpose of this tool is to make artists' life easier when converting unit model wavefront obj files to vegastrike bfxm format and assist with compression of textures to dds format.
To obtain this tool, checkout the modtools/UnitConverter directory from the VS svn repository.
The tool is entirely written in python with tkinter (a library lacking a lot of required functionality) as the standard GUI library for VS support tools, which is integrated in both, the standard python distribution, and the python version included with VS. This means that one should be able to run the app without any additional python installation (though I'm not sure how).
Three main "screens" are selectable via the buttons on the left:
1) Model
Here you can specify the path to the obj and the mtl files. The directory of the obj file will become the working directory, means master textures need to reside there
2) Materials
For each material in the obj file you can specify master (input) textures. Then you can save a correct mtl file and convert the obj file to bfxm. Further there is a button that makes the texture compression for you. All you need to do is to copy the bfxm and texture files to the data/units directory of your vessel.
3) Config
Specify the paths for mesher and nvcompress. If any of the executables is in your system PATH you may just specify the name without the path.
Caution: This preview version 0.03 has been used to convert the Xuanzong model and hence, for the time being, is guaranteed to work *only* with this model obj & mtl files, *only* for diffuse maps, *only* with the current workflow, *only* up to the point the current mesher works, and *only* on my linux system.
The reason I am sharing a basically untested version is that in a couple of hours I'll be going on vacation.
* Comments and functionality suggestions are welcome (read to do in unitconverter.py first)
* Bug reports are not welcome (there'll be too many of them with this early version)


