[TUTORIAL] Applying Valve's dirt to your own textures

Discussion in 'Tutorials & Resources' started by VelvetFistIronGlove, Aug 12, 2008.

  1. VelvetFistIronGlove

    aa VelvetFistIronGlove

    Messages:
    567
    Positive Ratings:
    437
    This tutorial uses Photoshop CS3. It should work fine in slightly earlier versions of Photoshop, but some things may be done slightly differently if you're using Paint Shop Pro or The Gimp. The end result will still be achievable with those tools.

    We're going to steal the dirt marks that you can see on concretewall002b. This will work because apart from the dirt, the texture's identical to concretewall002:

    concretewall002b
    [​IMG]

    concretewall002
    [​IMG]

    And put it on concretewall011, which lacks dirty variation. You could substitute your own texture here, too.

    concretewall011
    [​IMG]

    So let's start. Create a new image the size of the texture, 1024x1024, and create a new layer group. Make sure it's selected:

    [​IMG]

    Using the VTF plugin (or loading the TGAs exported from VTFEdit if you don't have the plugin), we open concretewall002.vtf and concretewall002b.vtf. Selecting first the clean texture, then the dirty one, drag the background layer of each from the layers palette into your new image. They will end up in the group like this:

    [​IMG]

    Change the render mode of the dirty texture to "Difference", and that of the group to "Exclusion". You'll end up with the dirt marks sitting on the white background, like this:

    [​IMG]

    Select the background layer. Now open concretewall011.vtf, and drag its layer into your new image. Et voila! We now have a dirtified concrete wall:

    [​IMG]

    Finally, select the group, and add a Curves adjustment layer. This will let you easily adjust the darkness of the dirt layer for a good looking result:

    [​IMG]

    Before and after:

    [​IMG]

    [​IMG]
     
    • Thanks Thanks x 37
  2. ChronoTriggerFan

    ChronoTriggerFan L7: Fancy Member

    Messages:
    435
    Positive Ratings:
    72
    Nice, I think I could replicate this with GIMP, but having to use a layer mask or something for the last step. I'll see what I can do.
     
  3. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
  4. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    66
    Nice tut, but can you make it more detailed, like where to click to add a curve adjusment layer etc?
     
  5. Ninjilla

    Ninjilla L7: Fancy Member

    Messages:
    445
    Positive Ratings:
    55
    I know this is late, but I have the .vtf plugin, which file are the textures located in exactly? I still cant find them x_x
     
  6. Gadget

    aa Gadget

    Messages:
    495
    Positive Ratings:
    410
    You have to extract the material files from the "team fortress 2 materials.gcf" in your steamapps folder by using the tool GCFscape
     
  7. Ninjilla

    Ninjilla L7: Fancy Member

    Messages:
    445
    Positive Ratings:
    55
    Ooh, thank you. I heard about that before, but never bothered to get it. My bad:blushing:
     
  8. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
    Bump for a good tutorial.
     
  9. Tehrasha

    Tehrasha L3: Member

    Messages:
    115
    Positive Ratings:
    26
    Except its not dirt, thats the red paint scheme for the concrete wall. :)
     
  10. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    But that's a blue wall.
     
  11. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    GENIUS
    This is clearly an excellent idea. Top and bottom textures add an excellent level of professionalism, and now I can achieve this with anything.
     
  12. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,557
    Yea, the trouble is that this only works with matching materials with a dirty floor/ceiling version, since they are required to cancel each other out to grab the unique dirt from one (difference). Handy, nonetheless.
     
  13. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    I think I just found a use for this.
    http://www.mediafire.com/?lfyzywzwnwz
    Threw that together in about 15 minutes using paint.net. Expect a texture pack.
     
  14. Micnax

    aa Micnax I maek map

    Messages:
    2,020
    Positive Ratings:
    1,338
  15. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,557
    pictures?
     
  16. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    Complete with alpha mask. I apolagise in advance if this post is too long. If you would like them right now, send me a PM. I will release this once I've done most of the effects.
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    Clearly, vfig was onto something. Between this tutorial and the earth he made, he has become unto a genius.