How to extract textures from map?

Demian

L1: Registered
Dec 7, 2009
21
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.
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
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.
 
Feb 18, 2009
640
629
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:

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
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.
 

Demian

L1: Registered
Dec 7, 2009
21
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.
 

Demian

L1: Registered
Dec 7, 2009
21
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..
Error loading VTF texture:
Error:
File version 7.5 doesn't match 7.0 to 7.4.
Anyway to convert .vtf to any image file without VTFEdit? Vtf2Tga doesn't work, it exports a garbled up image.
 
Last edited:

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
If you have Photoshop there's a plugin that enables Ps to open/modify/save/etc. .vtf files.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
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.
 

Demian

L1: Registered
Dec 7, 2009
21
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?
5dnx9h.png
 
Last edited: