Call of Duty 5: COD4 model import

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
This tutorial assumes that you already know how to create, compile & create GSCs,CSVs & FastFiles for your maps

This tutorial highlights the process to use COD4MW XModels in your Levels/Mods in CODWaW

The idea

Thankfully Treyarch are using almost the same Converter.exe version as IW did in COD4 and for this reason you can actually carry the files directly from one to the other. Oddly enough you must rename the Xmodelparts and Xmodelsurfs of the COD4 files but other than that it is straight forward.

What you need

Just gather the files required for the xmodel you wish to carry over. You can use the excellent XmodelModel Exporter to identify the files you will need;

  • Materials
  • Material properties
  • Images *.iwi (all: color, normal, specular)
  • Xmodel
  • Xmodelparts
  • Xmodelsurfs

Import process

Now copy in the proper folder in CODWaW Raw folder but rename the last 2 above Xmodelparts and Xmodelsurfs by removing the first letter in the filename.
Example: if the filename is wood_table_lod01 then rename it as ood_table_lod01

Thats it, now the model will show in Radiant. If you are adding it to the map/mod then you must also add a line for each Xmodel in the Zone File like this:

xmodel,me_banana_box1

texture issues

Now one last thing ... the specular texture from cod4 don't work too well so you might have to redo the material files.
I use Xmodel Exporter to get the filenames and CrazyBump to create the Normal/Specular maps.

Good Luck!


--Zeroy. 08:52, 8 June 2009 (UTC)