Call of Duty 5: Import a custom model
This tutorial will show you the basics of importing a new weapon model into CoD5.
SETUP OF PLUGINS:
(Not documented yet)
Prep 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”.
Export:
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.
- a. Click Yes to replace if asked.
4. 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”.
5. If you have bones then also select “Force Export Selected Joints”.
6. It should say “Successfully exported...” in Maya's console.
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>
- 1. materialType / model phong
- 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.
- 5. Cosine power map is modifications to the spec map, very rarely used.
- 1. Color map is the image.
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
- 1. type / rigid.
- 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.
- CODWW is your installation directory.
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
- raw/xmodel
- Skin:
- raw/images
- raw/materials
- raw/material_properties
- raw/images
Sources: Treyarch's Wiki