Half Life 2 Enhancement Mod

General => HL2EM Discussion => Topic started by: QuentinTehPie on June 10, 2014, 08:26 AM

Title: Question about HL2 Textures
Post by: QuentinTehPie on June 10, 2014, 08:26 AM
I have never tried modeling or making textures for a Source game, but I want to practice doing so, because I eventually want to contribute to this mod. First off, where are the textures for this game located? I have GCFscape and I have searched everywhere and so far I have come up empty. Also, how do you actually apply these textures in-game? (Sad questions, I know. But I really am interested in this and I need to start somewhere.)
Title: Question about HL2 Textures
Post by: Glitchvid on June 10, 2014, 09:57 AM
Half Life 2 moved to VPKs a time ago, so you will need to find the hl2_textures VPKs.
They can be found in "steam\steamapps\common\Half-Life 2\hl2"
You will need to open (with GCFScape) hl2_textures_dir.

From there you will see
(http://static.glitchvid.com/uw/s/2014/06/10/2014-06-10_16-42-504337I.png)

You can then open up folders and drag textures and materials out.

Source uses 2 (or more) files to create materials, a texture: .VTF and a material .VMT.  The texture is an image, and the material defines how it looks (is it shiny?  does it sound like wood? does it have a normalmap?)
You can read more about it here: https://developer.valvesoftware.com/wiki/Creating_a_Material

Once you've created a texture and material, you need to create a new folder in the Custom directory in "steam\steamapps\common\Half-Life 2\hl2\custom"
Example:
(http://static.glitchvid.com/uw/s/2014/06/10/2014-06-10_16-46-579468S.png)

Inside there, you'll create a folder named materials (similar to what you see in the main hl2 folder)
(http://static.glitchvid.com/uw/s/2014/06/10/2014-06-10_16-50-329980P.png)
From there you can create a folder (for example: "fluffybutts") and put your material and texture in there.
Note, you'll need to modify the VMT so that it references the folder you created:
(http://static.glitchvid.com/uw/s/2014/06/10/2014-06-10_16-52-431278q.png)

You will then need to open Hammer, and create a level to test your texture on; but that's more complex and the VDC can cover it better than I can.
Title: Question about HL2 Textures
Post by: QuentinTehPie on June 10, 2014, 10:57 AM
This. This is really helpful. Thank you. What are the _Normal files?
Title: Question about HL2 Textures
Post by: Glitchvid on June 10, 2014, 11:41 AM
They're Normalmaps
https://en.wikipedia.org/wiki/Normal_mapping
https://developer.valvesoftware.com/wiki/Bump_map
Title: Question about HL2 Textures
Post by: QuentinTehPie on June 10, 2014, 11:49 AM
Okay.  Once again, thank you. This all helps a lot. I just have 3 more questions about things I have ran into so far, and then I think I can handle myself.

1. I can't find any VMT Files. Just .VTF's. Should I be looking somewhere else?
2. How do I export pictures for further editing and then put them back in?
3. Are there any other programs for editing that you would recommend?
Title: Question about HL2 Textures
Post by: Glitchvid on June 10, 2014, 11:56 AM
1. The VMTs are inside the VPK "hl2_misc_dir"
2.Use a program like VTFEdit to export and import the textures.
3.Any image editing program would work, I personally use Photoshop CS.
Title: Question about HL2 Textures
Post by: QuentinTehPie on June 10, 2014, 12:20 PM
I don't see any: http://i.imgur.com/N51vaAr.jpg
Title: Question about HL2 Textures
Post by: Glitchvid on June 10, 2014, 12:22 PM
I don't see any: http://i.imgur.com/N51vaAr.jpg

hl2_misc_dir.vpk

(http://static.glitchvid.com/uw/s/2014/06/10/2014-06-10_19-20-441549p.png)


Title: Question about HL2 Textures
Post by: QuentinTehPie on June 10, 2014, 12:26 PM
oh. I read that wrong. Im sorry.