How to extract textures from map?

Discussion in 'Mapping Questions & Discussion' started by Demian, Aug 1, 2010.

  1. Demian

    Demian L1: Registered

    Messages:
    21
    Positive Ratings:
    0
    I assume Hammer somehow packs all the map textures with the .bsp file? So how do I extract all those textures from there? I have both .bsp and .vmf of the map I want to get the textures from.
     
  2. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,692
    Open the .vmf and find the texture that you want to copy. Press shift-a and select the face that has the texture. Look at the path/name of the texture, find it in the texture browser, and apply it in your map.
     
  3. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    How do you mean extract? you mean, there is a map with a texture you want, but you can't find a download for it? In that case, you can get it without asking the author of the map or trying harder to find it. If the author hasn't released the texture to the public to use, then you can go around taking it from a map (1. that's wrong 2. it is impossible). If it is your map and your texture and you lost it, you should really back-up your stuff...

    EDIT: one more thing, Hammer doesn't pack custom files into a bsp. you have to do that manually with something like pakrat or PackBSP
     
    Last edited: Aug 1, 2010
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    Content embedded in BSPs can be found/extracted by opening the BSP with the application GCFscape.

    Any moral issues that may exist over using it if it's not your map are yours to deal with, but there's the technical.
     
  5. Demian

    Demian L1: Registered

    Messages:
    21
    Positive Ratings:
    0
    The game I'm trying to get the texture from is Alien Swarm (It came with full game source code and SDK tools and it'd free), but it uses Hammer too so I assumed I could get an answer here. The trick is, even though I have the texture name and the full texture path, I cannot find it anywhere. It has been magically hidden in the game files. I'm dead serious. There is no file with that texture name on my computer. And for that matter, the game has no .gcf file.

    Anyone have any idea what to do? I swear I die if I don't get those textures today.
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    Oh, in that case I believe you'll need to look in the VPK files that are strewn about the AS installation.
     
  7. Demian

    Demian L1: Registered

    Messages:
    21
    Positive Ratings:
    0
    Argh, stupid me. Now I remember why I still haven't got those textures. I can find the .vpk files and open them with GCFScape, but when I try to open the .vtf file in VTFEdit..
    Anyway to convert .vtf to any image file without VTFEdit? Vtf2Tga doesn't work, it exports a garbled up image.
     
    Last edited: Aug 1, 2010
  8. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,692
    If you have Photoshop there's a plugin that enables Ps to open/modify/save/etc. .vtf files.
     
  9. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Is there a new version of VTFEdit available?

    In a pinch, it may be possible to hex-edit the VTF so that it lies about its version, but that could also lead to very weird results.
     
  10. Demian

    Demian L1: Registered

    Messages:
    21
    Positive Ratings:
    0
    Broken link.
     
  11. Demian

    Demian L1: Registered

    Messages:
    21
    Positive Ratings:
    0
    Aha! I got an idea how do I get the textures from those files. It's pretty crude, but works.

    Is there a way to mod/hack/something Hammer to display 1024x1024 textures? I could just open the texture browser in full screen, find the textures I must have and take a screenshot of them. Then I'll just crop them in Photoshop and voilà.

    Also, how would I disable those tiny little icons in the bottom left?
    [​IMG]
     
    Last edited: Aug 2, 2010