TRUESPACE - DOOM3
Doom3 Importer
for
trueSpace7.5







trueSpace7.5.1 version
Here are the latest scripts for ts75. We don't have script access to vertex bone weights yet so they are far from complete.

The importer will load a mesh and a skeleton.

The animation import loads very SLOWLY. It's so SLOW that it looks like truespace has frozen. It loads a fake and a real skeleton.

The exporter takes a mesh, no bones, and exports the shape with a single bone defined in the export file. It's mostly a proof of concept test, but the result does load into the doom3 game engine(at least I think it does, it's been a long time since the last test).
 
 
trueSpace75(good skeleton) 
mesh loader  doom3 MD5 Mesh Loader ts75 dec2007.RsObj 
animation import  doom3 Animation Import ts75 dec2007.RsObj 
very simple mesh export doom3Export ts75release.RsObj
   
   
Older trueSpace75 version(bad skeleton) 
mesh loader doom3 MD5 Mesh Loader ts75release.RsObj
animation import doom3 Animation Import ts75release.RsObj
   


trueSpace7 version
click here to download the doom3 MD5 loader RsObj

Doom3 models are found in "c:\program files\doom 3\base\pak002.pk4"

Rename the file from "pak002.pk4" to "pak002.pk4.zip"

Now the file can be opened as a normal zip file - extract the mesh and texture files

the fat man is located in the zip file under
models/md5/monsters/zfat/zfat.md5mesh

the tga texture files are found in
models/monsters/zombie/fatty/

fatty_d is diffuse color
fatty_s is specular
fatty_local is the normal map
fatty_h heightmap? bumpmap?


load the md5meshloader.RsObj into a library by right click and Import Object


drag the object into the 2D link editor


switch the 3d view to Model so you can see the model load in

click on the yellow ... button to select the zfat.md5mesh file
click the red import button to load it in


in about 5 seconds the link editor will show the objects load in


about 5 seconds after that the meshes will show in the 3d view mapped with the default caligari texture


each of the meshes needs to be moved before they will show up in the Player - don't know why
move them and switch to player view


use the material picker to edit the DX material



    
load the bitmap library and import the folder with the fatty textures

   

drag fatty_d onto the TextureShader

drag fatty_s onto the DefaultModelShader

drag fatty_local on to the NormalMapShader


final result



With the color removed it's easy to see the contribution of the normal map
this object is made from only 1204 triangles




Doom3 Information links


http://www.doom3world.org/phpbb2/index.php





click here for a Text format Program Listing for doom3 importer