Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial *UPDATED* Creating A Custom Texture
#1
Creating A Custom Texture

Export From Photoshop

You can use any program that will save an image as either a .tga or .dds, Photoshop is the industry standard so I'll start in there.

If your using Photoshop then download this plug in and install:
Image Dimensions
First resize your image as (n^2)x(n^2) and "n" can be any number.
  • IE: (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, ect...

[size=arge]Save As .TGA Or .DDS[/size]
  • 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.


Save Images In Raw/images
I suggest you save a copy elsewhere too but when we go to Asset Manager it will only consider images in the "raw/images" folder.
[Image: Teximport1.jpg]

Asset Manager
Create the Material
  • Once you open asset manager there is a menu to the left and select "Material".
  • Once "material" is highlighted then click on New Entry and fill in the name of your texture.
  • Click on OK and your material should show up like in the picture.

[Image: Teximport2.jpg]

Configuring The Asset Information

materialType - Select "world phong" for a texture.
surfaceType - Select the proper surface type to use stock settings for the type of material.
Stock settings include impact effects, sounds, and penetration ability.
sort - Leave as "<default>*".
usage - Select the intended use for your texture.
Locales - Intended theme or location for your texture.
Framebuffer operations - Leave alone unless you are an advanced user.
If creating an alpha blending texture then change "blendFunc" to "blend".
Color Map - This is the image file that you created, this is also what the player will see.
Normal Map - This section can accept a bump map or normal map to show height.
A bump map is a Grey scale image of your texture showing height.
Black is low, white is high, values in between are relative height.
A normal map is provided by converting a bump map with a plug in.
while most of your image may be purple there are different colors that represent height.
A bump map only shows height in an image, a normal map shows height and direction of a bump.
Detail Normal Map - This is the same as a normal map but only shows when the player is close to the texture, usually only small bumps or holes.
Specular color map - Same rules as a bump map but white is shiny and black is no shine.
Cosine power map - Adjustments to Specular color map.
[Image: Teximport3.jpg]
[Image: Teximport4.jpg]

Convert Your File
Once everything is setup, save your GDT in [root]\texture_assets.
Go to "PC Convert -> Current Assets Only"
You can use the convert all option but any errors may be lost in scrolling log.
Once successful you will have 3 files to keep in mind when packing your map or mod.
raw/materials/texturename <no file type>
raw/material_properties/texturename <no file type>
raw/images/texturename.iwi


Viewing
If you created a model phong then you can view your texture on your model in Asset Viewer.

SOURCE: Treyarch
Reply

#2
so i open up a gun .gsc and edit it from there? and do i need the plugin?
[Image: mca.png]
Add me on steam! otterm
Reply

#3
This is creating a custom texture not gsc lol
Reply

#4
Code:
usage - Select the intended use for your texture.
Locales - Intended theme or location for your texture.
I believe these are only used for mapping and don't really matter because we don't have radiant.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 12,438 10-29-2013, 07:22
Last Post: xInfinity.
Wink [Release] se7en_ace's I'm On A Bus [Nuketown Texture Mod + Camo] Ace 12 13,551 09-22-2013, 02:58
Last Post: Ace
  Custom xanims DidUknowiPwn 8 7,075 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,729 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,348 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,551 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,516 06-22-2013, 07:33
Last Post: mattyman
  [Release] Bypass Wildcards [Updated v-28] conan1 2 3,414 06-06-2013, 16:57
Last Post: conan1
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 156,233 05-25-2013, 01:05
Last Post: Nero Z zero
  [Release] Barata's FOV Changer Updated FOREVER! barata 9 10,405 05-22-2013, 18:00
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.