Custom textures/materials for Source 2009

Custom textures/materials for Source 2009

Re: Custom textures/materials for Source 2009 Posted by Wild Card on Sat Mar 17th 2012 at 12:03am
Wild Card
2321 posts
Posted 2012-03-17 12:03am
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
So things have changed since HL1. I remember there used to be a tool to convert regular images into .WAD files or the like, and now Im trying to do the same for my Titanic map. I've done a bit of searching but now comes the time to board my flight home.

I've found this link https://developer.valvesoftware.com/wiki/Material_Creation which explains the whole materials thing and I've installed VTFEdit, converted a texture into a .vtf, but now Im not sure whats the next step. I dont want to do anything fancy, I just want the thing to end up into a format (WAD or otherwise) that I can use in VHE to texture my brushes. The tutorial pretty much leaves me with a VTF file, but doesnt explain what to do next.

In VHE, it appears textures (or materials or whatever) have to be in either .WAD or .PAK files (Tools -> Options -> Materials)

I also noticed that some of the texture files (including VTF files) appear in the steamapps Half Life 2 hl2/materials/ folder appear in the texture editor, but if I copy my file to that directory it doesnt appear in VHE, even after a restart.

Answers much appreciated :)
Re: Custom textures/materials for Source 2009 Posted by Captain Terror on Sat Mar 17th 2012 at 5:02am
Captain Terror
68 posts
Posted 2012-03-17 5:02am
68 posts 477 snarkmarks Registered: Feb 27th 2008 Location: USA
to see the textures in hammer, you also copy the vtf/vmt for each texture to your materialsrc directory.

when you are ready to release the map, use PackBSP to automatically embed all your texturs/models/sounds/etc into the bsp. (these can later be viewed/extracted if necessary using GCFScape.
Re: Custom textures/materials for Source 2009 Posted by Wild Card on Sat Mar 17th 2012 at 5:35am
Wild Card
2321 posts
Posted 2012-03-17 5:35am
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Could you be more specific? I've tried the following directories with no luck:

C:\\Program Files (x86)\\Steam\\steamapps\\<steamID>\\half-life 2\\hl2\\materials\\
C:\\Program Files (x86)\\Steam\\steamapps\\<steamID>\\half-life 2\\hl2\\materials\\SDK\\
C:\\Program Files (x86)\\Steam\\steamapps\\<steamID>\\sourcesdk_content\\hl2\\materialsrc\\
C:\\Program Files (x86)\\Steam\\steamapps\\<steamID>\\sourcesdk_content\\hl2\\materialsrc\\SDK\\

[edit]Apparently the pit doesnt like '' characters
Re: Custom textures/materials for Source 2009 Posted by Captain Terror on Sat Mar 17th 2012 at 6:42am
Captain Terror
68 posts
Posted 2012-03-17 6:42am
68 posts 477 snarkmarks Registered: Feb 27th 2008 Location: USA
should be the third one down. Whenv i make a texture i copy to:
  • sourcesdk_content - whatevergame - materialsrc
  • whatevergame - materials
Be sure the the directory you specify in the vmt is the same as the physical location you are placeing your vtf and vmt files.
Re: Custom textures/materials for Source 2009 Posted by Wild Card on Sat Mar 17th 2012 at 8:47am
Wild Card
2321 posts
Posted 2012-03-17 8:47am
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Hmm maybe that's part of the issue; I don't have a vmt file. The VTFEdit utility only created a vtf file..
Re: Custom textures/materials for Source 2009 Posted by Wild Card on Sat Mar 17th 2012 at 12:48pm
Wild Card
2321 posts
Posted 2012-03-17 12:48pm
2321 posts 391 snarkmarks Registered: May 20th 2002 Occupation: IT Consultant Location: Ontario, Canada
Ok, got further. Found these tutorials which were very informative:

http://www.worldofleveldesign.com/categories/wold-members-tutorials/keith_garry/custom-textures-hammer-keithgarry.php

and

http://www.gamebanana.com/css/tuts/2324

The first one was more informative but it was a bit incorrect. The second one had the correct path location for the basetexture parameter in the VMT.

Looks like I now have my textures working. Will let you know after the flight home and a well awaited nap.
Re: Custom textures/materials for Source 2009 Posted by Digi on Sun Apr 8th 2012 at 7:15am
Digi
17 posts
Posted 2012-04-08 7:15am
Digi
member
17 posts 3 snarkmarks Registered: Apr 6th 2012 Occupation: Student Location: Romania
Well that valve dev link actually explains the VMT creating process :P
https://developer.valvesoftware.com/wiki/Material_Creation#Creating_a_material

Also, you can use any VTF file from the materials folder in your VMT script, for example I'm using base texture nature/ground_grass02 in my /trains/grass.vmt file :}