Call of Duty 5: Custom Textures: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:


*You can use your color map or a bump map. The Nvidia plugin can do normal maps too in the "Normal map settings" button in the picture. Another program to consider is [http://www.crazybump.com/ CrazyBump].
*You can use your color map or a bump map. The Nvidia plugin can do normal maps too in the "Normal map settings" button in the picture. Another program to consider is [http://www.crazybump.com/ CrazyBump].


== Preparing the Assets ==
== Preparing the Assets ==
Line 40: Line 41:


  C:\Program Files\Activision\Call of Duty - World at War\texture_assets\
  C:\Program Files\Activision\Call of Duty - World at War\texture_assets\


== Information on Format ==
== Information on Format ==
Line 48: Line 50:
**DXT5 has the most detailed alpha so fading between opaque and transparent looks good, good for dirty glass.
**DXT5 has the most detailed alpha so fading between opaque and transparent looks good, good for dirty glass.
**DXT3 has a less detailed alpha channel so its good for fading but only if there's a little of it.
**DXT3 has a less detailed alpha channel so its good for fading but only if there's a little of it.


== The Conversion ==
== The Conversion ==
Line 64: Line 67:


* Pick a name for your Custom Gamedata file (.GDT) and OK.
* Pick a name for your Custom Gamedata file (.GDT) and OK.


=== Standard/Plain texture ===
=== Standard/Plain texture ===
Line 90: Line 94:




*The top section has  
The top section has  


<font color="yellow">MaterialType:</font> Usually World Pong unless Effect or other, take a look at the list;<br>
*<font color="yellow">'''MaterialType''' - </font> Usually World Pong unless Effect or other, take a look at the list;
<font color="yellow">SurfaceType:</font> Unless Decal or Sky then leave at Default;<br>
*<font color="yellow">'''SurfaceType''' - </font> Unless Decal or Sky then leave at Default;
<font color="yellow">Sort:</font> Important, thats for the Impact Fxs/Markings, pick depending on the Surface;<br>
*<font color="yellow">'''Sort''' - </font> Important, thats for the Impact Fxs/Markings, pick depending on the Surface;
<font color="yellow">Usage:</font> Pick under which sections it will show in Radiant Textures Menu;<br>
*<font color="yellow">'''Usage''' - </font> Pick under which sections it will show in Radiant Textures Menu;
<br>
*<font color="orange">'''Locales''' - </font> Again, Radiant stuff
<font color="orange">Locales:</font> Again, Radiant stuff<br>
*<font color="orange">'''Framebuffer operations''':</font>
<font color="orange">Framebuffer operations:</font><br>
**'''BlendFunc''' - Transparancy settings, Replace is for most materials, Blend is for standard transparency like glass, multiply is used for grime decals, the rest are mostly for fx;
<br>
**'''Cullface''' - Back will only draw outside faces, Front will only draw inside faces, None will draw both.
*BlendFunc: Transparancy settings, Replace is for most materials, Blend is for standard transparency like glass, multiply is used for grime decals, the rest are mostly for fx;
**'''PolygonOffset''' - Only adjust this for decals;
*Cullface: Back will only draw outside faces, Front will only draw inside faces, None will draw both.
**'''AlphaTest''' - GE128 = punchout alpha, black and white (for Glass Windows!!).  Always = everything else;
*PolygonOffset: Only adjust this for decals;
**'''DepthTest''' - Adjusts the rendering order of the material. Dont touch :);
*AlphaTest: GE128 = punchout alpha, black and white (for Glass Windows!!).  Always = everything else;
**'''DepthWrite''' - Turns z buffer info on or off, leave on default unless you know what you are doing!;
*DepthTest: Adjusts the rendering order of the material. Dont touch :);
*<font color="orange">'''Color Map''' - </font>
*DepthWrite: Turns z buffer info on or off, leave on default unless you know what you are doing!;
*<font color="orange">'''Normal Map''' - </font>
<br>
*<font color="orange">'''Detail Map''' - </font>
<font color="orange">Color Map:</font><br>
*<font color="orange">'''Specular Map''' - </font>
<font color="orange">Normal Map:</font><br>
<font color="orange">Detail Map:</font><br>
<font color="orange">Specular Map:</font><br>

Revision as of 01:54, 22 January 2009

This Tutorial will explain how to create Custom Texture for use in Radiant and in your Custom maps. We will cover Standard and Blendable Textures.

*** NOT COMPLETED YET ***

Pre-requisite

  • First of all you must have Asset Manager in working order. Should you have any problems, please check HERE.
  • To store the Texture assets (source files) TGAs or DDS you want to create a new folder:
C:\Program Files\Activision\Call of Duty - World at War\texture_assets\
  • Under this folder i would advise to create sub folder to store your different textures set but that's up to you. The main thing is that the TGA or DDS files are place under the COD5 root.
  • You can use any program that will save an image as either a .tga or .dds, Adobe Photoshop is the industry standard so we'll start in there.

If your using Adobe Photoshop then download this plug-in and install:

 The ATI Normal map generators is the easiest to use, it converts pre-made .tga files. 
  • You can use your color map or a bump map. The Nvidia plugin can do normal maps too in the "Normal map settings" button in the picture. Another program to consider is CrazyBump.


Preparing the Assets

  • Once you have your source pictures - TGAs or DDS - you must make sure to resize correctly!
  • Resize your image as (n^2)x(n^2) and "n" can be any number.

Example:

(8^2)x(16^2) = 64 x 256 pixels, this would be useful for trim.
 Some other sizes:  64 x 64, 512 x 512, 1024 x 512, 256 x 128, etc...


  • Save the resulting file as either .tga or .dds in the folder created previously:
C:\Program Files\Activision\Call of Duty - World at War\texture_assets\


Information on Format

  • TGA is only useful for opaque textures, this is easiest to use as there are no options.
  • DDS can be used for textures that have transparency like windows.
    • DXT1 has only 1 bit alpha, like an on / off switch. There is no fading and a pixel is either opaque or see through.
    • DXT5 has the most detailed alpha so fading between opaque and transparent looks good, good for dirty glass.
    • DXT3 has a less detailed alpha channel so its good for fading but only if there's a little of it.


The Conversion

Now that your asset(s) is(are) ready its time to convert it!

  • Open the Launcher and then click on Asset Manager as shown here:



  • Once in the Asset Manager - or Assman, go to File > Save As.. > and browse to:
C:\Program Files\Activision\Call of Duty - World at War\texture_assets\
  • Pick a name for your Custom Gamedata file (.GDT) and OK.


Standard/Plain texture

For a standard/plain texture,

  • In the drop down list, go down and select Material:



  • Click New Entry, name the texture, for this example i called mine my_texture_1, but it could be anything.



  • A new panel is now showign on the right with all scary options!



No panic! Here is a quick run-down of the options you need to know:


The top section has

  • MaterialType - Usually World Pong unless Effect or other, take a look at the list;
  • SurfaceType - Unless Decal or Sky then leave at Default;
  • Sort - Important, thats for the Impact Fxs/Markings, pick depending on the Surface;
  • Usage - Pick under which sections it will show in Radiant Textures Menu;
  • Locales - Again, Radiant stuff
  • Framebuffer operations:
    • BlendFunc - Transparancy settings, Replace is for most materials, Blend is for standard transparency like glass, multiply is used for grime decals, the rest are mostly for fx;
    • Cullface - Back will only draw outside faces, Front will only draw inside faces, None will draw both.
    • PolygonOffset - Only adjust this for decals;
    • AlphaTest - GE128 = punchout alpha, black and white (for Glass Windows!!). Always = everything else;
    • DepthTest - Adjusts the rendering order of the material. Dont touch :);
    • DepthWrite - Turns z buffer info on or off, leave on default unless you know what you are doing!;
  • Color Map -
  • Normal Map -
  • Detail Map -
  • Specular Map -