TNKTNKTNKTNKTNKTNKTNK
Sunday,
20.May.2012

Menu

Deutsch English

[ Navigation ]

-
-
-
-

[ Lamda Rising ]

-


[ Partner ]
 
emberstudio

 
[ Counter ]



VISITS19754
TODAY:11
YESTERDAY:52
HITS
TODAY:23
YESTERDAY:144
HITS TOTAL:144


[ Login ]






»» Click here to get back to the Tutorials Section ««

 

Own Textures


Hello and welcome to the "own textures" Tutorial.

First of all you need a picture you want to have on your map. This must have an similar in size (like 256x256). The height and the width should be divisible by 2.

For example: You can use the following height and witdth for your picture:

2 - 4 - 8 - 16 - 32 - 64 - 128 - 256 - 512 - 1024 - 2048 (maximum)

If you resized the picture for your map to 256x256, 512x512 et cetera save the picture as a .tga file. It is important to save the tga as 24Bit or 32Bit.

The next step you've to do is to open two windows explorer windows. Choose the following folder:
Steam/SteamApps/deinaccount/SourceSDK/bin on the first window and Steam/SteamApps/deinaccount/SourceSDK_content/spielname/materialssrc in the second explorer. If there isnt a materialssrc folder you have to create one.

In the folder "materialssrc" you have to create a new folder with any name you want to choose for your texture. Copy your .tga file in the folder you've created with a special name.

Now go to the gamefolder you want to have the texture in. For example: "Steam/SteamApps/deinaccount/Counter-Strike Source". Change the directory to the "materials" folder and create a new folder there with the same name you did in the materialssrc folder. (very important)

After this you've to switch between the windows. Choose the explorer window where you've got the materialssrc folder (the folder where your TGA file is in). In the other window "Steam/SteamApps/deinaccount/SourceSDK/bin" is a file named "vtex.exe".

Now drag the .TGA file in the vtex.exe file. A DOS window will open with a command.

You have to press a key to close the process and the window.

There should be a textfile with 0 KB in your folder where your image is in.

You cant do anything with it. So you've to drag the .TGA file in the vtex.exe again. This time the program will create a .vtf file in the materials folder for your game.

In the folder where the .vtf file is in you have to create a new textfile which should have the same name like your picture. Like in this example "Tutorial.txt". Now open the textfile and put in the following lines:

"LightmappedGeneric"
{
"$basetexture" "foldername/picturename"
}


The Foldername need to be changed with the folder your TGA File is in. For example "Tutorial/tutorial". Dont use .TGA in the end otherwise it wont work.

Now choose "File -> Save as..." and save the textfile as a .vmt file. If you restart the Hammer Editor your textur should be in the texturebrowser.

If you use for example "tutorial" in your filter, your textur should be there.


Rating
Rated 5/5 (1 Vote)

Your Comment