Nostradamus
Newbie
- Joined
- May 17, 2003
- Messages
- 980
- Reaction score
- 0
Well, I guess a lot of people have got this figured out, but I thought I would adress a few points which has not been given that much attention.
First off you need to have your tga files, which can be any bitrate, but keep the size in mind. the sides has to one of these lenghts:
64, 128, 256, 512, 1024 or 2048.
you can use those lenghts any way you want of course... you can make it 64x2048 if you want to.
Second, you need to place your tga files in the correct folder:
\SteamApps\username\sourcesdk\cstrike_sample_content\materialsrc
Note: before you move on to compiling the textures, you might want to crate a .txt file for the tga files. For example if you are making a skybox you have to make a txt file for each of the extures with $skybox in it. For more cmds go here.
Now for the compiling you should go into the sourcesdk\bin\ where you should look for the vtex.exe file. Usually you would have to go through cmd promt to compile the textures, but an easier way is to make a shortcut for the vtex.exe and go into the file properties and add something like this to the line with the file info:
-mkdir -shader LightmappedGeneric d:\program files\Steam\SteamApps\user\sourcesdk\cstrike_sample_content\materialsrc\subfolder\filename.tga
Of course you will have to change the tga filename every time you run the shortcut, but overall it's easier.
Now once you have run the shortcut, you will propably get a new folder called materials in the sourcesdk\cstrike_sample_content\materialsrc\subfolder folder called materials.(If it's not at that excact location, take a look at the compiler history and look where it has put the vmt file).
Once you have located the vmt and vtf files you should move them(and the subfolder theyre in) to the \counter-strike source\cstrike\materials folder, so that hammer will note that theyre there.
Note: If you are making a skybox, it is vital that you name the subfolder in which the vtf and vmt files are in: skybox.
Now open the vmt file with notepad and change the abse texture to something like this: "$baseTexture" "subfolder/filename"
Now the subfolder should be the one the vtf and vmt files are in, and the filename should be the name of the corrosponding vtf file WITHOUT the tga extension.
Now if you have a metal material you will want it to look like you are firing at metal, so you will need to add a surfaceprop.
So look here for a list of the surface properties and names.
Now you add the metal surface prop to the vmt file so it looks something like this:
"LightmappedGeneric"
{
"$baseTexture" "subfolder/filename"
"$surfaceprop" "metal"
}
Note: I _think_ that the prop for skymaps should be default_silent but as I have experienced some flickering with my sky map, I can not be 100% sure.
Now you should be done and be ready to load up hammer.
However if you cantfind the texture in hammer the reason is that the config guide in the sdk makes hammer look in the sdk dir. for the textures(which cs:S doesnt!). So you will need to go into options>tools and set the Game directory to \SteamApps\username\counter-strike source\cstrike.
Dont remember to copy the gameinfo.txt from
\SteamApps\username\sourcesdk\cstrike_sample_content over to the cstrike dir aswell.
That should do it!
First off you need to have your tga files, which can be any bitrate, but keep the size in mind. the sides has to one of these lenghts:
64, 128, 256, 512, 1024 or 2048.
you can use those lenghts any way you want of course... you can make it 64x2048 if you want to.
Second, you need to place your tga files in the correct folder:
\SteamApps\username\sourcesdk\cstrike_sample_content\materialsrc
Note: before you move on to compiling the textures, you might want to crate a .txt file for the tga files. For example if you are making a skybox you have to make a txt file for each of the extures with $skybox in it. For more cmds go here.
Now for the compiling you should go into the sourcesdk\bin\ where you should look for the vtex.exe file. Usually you would have to go through cmd promt to compile the textures, but an easier way is to make a shortcut for the vtex.exe and go into the file properties and add something like this to the line with the file info:
-mkdir -shader LightmappedGeneric d:\program files\Steam\SteamApps\user\sourcesdk\cstrike_sample_content\materialsrc\subfolder\filename.tga
Of course you will have to change the tga filename every time you run the shortcut, but overall it's easier.
Now once you have run the shortcut, you will propably get a new folder called materials in the sourcesdk\cstrike_sample_content\materialsrc\subfolder folder called materials.(If it's not at that excact location, take a look at the compiler history and look where it has put the vmt file).
Once you have located the vmt and vtf files you should move them(and the subfolder theyre in) to the \counter-strike source\cstrike\materials folder, so that hammer will note that theyre there.
Note: If you are making a skybox, it is vital that you name the subfolder in which the vtf and vmt files are in: skybox.
Now open the vmt file with notepad and change the abse texture to something like this: "$baseTexture" "subfolder/filename"
Now the subfolder should be the one the vtf and vmt files are in, and the filename should be the name of the corrosponding vtf file WITHOUT the tga extension.
Now if you have a metal material you will want it to look like you are firing at metal, so you will need to add a surfaceprop.
So look here for a list of the surface properties and names.
Now you add the metal surface prop to the vmt file so it looks something like this:
"LightmappedGeneric"
{
"$baseTexture" "subfolder/filename"
"$surfaceprop" "metal"
}
Note: I _think_ that the prop for skymaps should be default_silent but as I have experienced some flickering with my sky map, I can not be 100% sure.
Now you should be done and be ready to load up hammer.
However if you cantfind the texture in hammer the reason is that the config guide in the sdk makes hammer look in the sdk dir. for the textures(which cs:S doesnt!). So you will need to go into options>tools and set the Game directory to \SteamApps\username\counter-strike source\cstrike.
Dont remember to copy the gameinfo.txt from
\SteamApps\username\sourcesdk\cstrike_sample_content over to the cstrike dir aswell.
That should do it!