How to use the blender xmesh exporter
Posted: Thu Sep 20, 2007 5:27 pm
Hi,
could somebody please elaborate on the necessary steps for exporting a model from blender? I've tried it but so far with little success. Here is what I did:
I have an .obj which is lacking a .mtl -- so I imported it into blender, used ImageMagick's convert make .pngs from the texture which came as a Photoshop .psd. I then created materials for the different objects of the model in blender and assigned the diffuse and the glow map .png. At this point everything looks fine in blender. Next I used the blender_xmesh_export.py script that comes with Vegastrike to convert the objects to .xmesh. The script produced one file per object, but doesn't assign any textures. I edited the .xmeshs by hand and added the appropriate texture... entries, then tried to convert the .xmesh to .bfxm with the following command (I already wrote this in another threads...):
You can download the obj, xmesh, pngs etc. from http://www.hawo.stw.uni-erlangen.de/~si ... r-test.tar (15MB).
could somebody please elaborate on the necessary steps for exporting a model from blender? I've tried it but so far with little success. Here is what I did:
I have an .obj which is lacking a .mtl -- so I imported it into blender, used ImageMagick's convert make .pngs from the texture which came as a Photoshop .psd. I then created materials for the different objects of the model in blender and assigned the diffuse and the glow map .png. At this point everything looks fine in blender. Next I used the blender_xmesh_export.py script that comes with Vegastrike to convert the objects to .xmesh. The script produced one file per object, but doesn't assign any textures. I edited the .xmeshs by hand and added the appropriate texture... entries, then tried to convert the .xmesh to .bfxm with the following command (I already wrote this in another threads...):
Code: Select all
florian@beren:Imp_Assualt_Transport [0]> mesher HULL_LOD0_None_HULL_LOD0_None.xmesh atr.bfxm xbc
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::erase