Call of Duty 5: Import a custom model

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

Nutshell.png This tutorial will show you the basics of importing a new weapon model into CoD5.

Setup of Plugins

(Not documented yet)

Prepare the model

  1. Create and skin your model in Maya 8.5.
  2. Call of Duty is a Z up system so you may need to rotate your model. Chances are you will have to rotate on the X axis 90 degrees.
  3. With your model selected goto “Color → Apply Color Options (Box)”.
  4. Change “Color” to White and “Apply”.

CoD5 Custom Model Import 3.jpg CoD5 Custom Model Import 4.jpg


  1. Open the Model Exporter, “Call of Duty: World at War ? Model Exporter”.
  2. Click on “Add New Entry” and check the box to the left of “Entry1”.
  3. To the right, click on “...” and select the file currently open and you want to export.
  4. Click Yes to replace if asked.
  5. Open “Window ? Outliner” and select everything (Ctrl Click) you want to export, meshes and bones if you have them. Once everything is selected click on “Set Exports”.
  6. If you have bones then also select “Force Export Selected Joints”.
  7. It should say “Successfully exported...” in Maya's console.

CoD5 Custom Model Import 1.jpg

Asset Manager

1. Open Asset manager and make a new .gdt with your model's name.
2. Setup your skin.

  • a. Scroll down to material and click on New Entry. This is the same name as in your Maya phong.
  • b. The only changes you should make from the default are:
    • 1. materialType / model phong
    • 2. surfaceType / <none>
    • 3. usage / <not in editor>
  • c. Then select your skin.
    • 1. Color map is the image.
    • 2. Normal map is the bumps, white is high and black is low, uses entire greyscale.
    • 3. Detail normal map are tiny bumps when viewed very close.
    • 4. Specular color map is the shininess, white is full shine, black is no shine. [CoDEmanX: It's rather the reflection color texture]
    • 5. Cosine power map is modifications to the spec map, very rarely used. [CoDEmanX: This is actually the shininess texture]

3. Save and Convert

  • a. File → Save.
  • b. Convert → Current Asset Only F10

4. Setup your xmodel.

  • a. Scroll down to “xmodel” and click on “New Entry”. You can name this whatever you want.
    • 1. type / rigid.
    • 2. filename / your_model_export_file.XMODEL_EXPORT
  • b. This file is where your maya file is saved, move it to “CODWW'/model_export”.
    • CODWW is your installation directory.
    • 3. You can make more of the same model with less polys and export it separately for a lower LOD.

5. Save and Convert.

CoD5 Custom Model Import 5.jpg

CoD5 Custom Model Import 7.jpg

Viewing your new model

Goto CODWW/bin/asset_viewer.exe
Scroll down or search for your model and if it shows up then you have successfully exported your object.
If your object is too small or too big than you wanted then you will have to resize it in Maya and export again. 1 unit in Maya = 1 unit in Radiant.
To ship your map with the model then in your zone file add “xmodel,modelname”.

  • Only “raw/images” has to be in your .iwd, even

There actually 6 files to your model if you send it off alone.

  • Model:
    • raw/xmodel
    • raw/xmodelparts
    • raw/xmodelsurfs
  • Skin:
    • raw/images
    • raw/materials
    • raw/material_properties

CoD5 Custom Model Import 2.jpg

Sources: Treyarch's Wiki