PDA

View Full Version : Simple texture creation guide



ZezXion
30 Apr 2011, 08:05am
Didn't see one of these, so I decided to upload one I made for another forum a while ago. Maybe I'll upload one on how to make blended textures/transparent textures and animated textures later, don't know yet.

To create custom textures you will require VTFEdit.
To get this, just type VTFedit in google, and click the very first link. Download it. While installing this, near the very end it will ask what you want it to associate with. MAKE SURE YOU ALLOW BOTH. VTFEdit 1.25 Graphics Tool Download, Half-Life 2 miscellaneous (http://halflife2.filefront.com/file/VTFEdit_125_Graphics_Tool;88780) Nems tools is down. Download it here.


The first thing you do is get your texture: Here is mine.

http://img262.imageshack.us/img262/9986/tut1n.png

Now open VTFedit and press CTRL+I. Find your picture. Make sure the picture is Jpeg.

When VTF options pops up, leave everything as it is and click okay.

http://img189.imageshack.us/img189/4328/tut2z.png

Done! The picture is open. It doesn't matter how large or small the texture is, it will still work.

Now follow me over to C:\Program Files\Steam\steamapps\USERNAME\counter-strike source\cstrike\materials

In this folder create a new folder called 'mytextures'

http://img440.imageshack.us/img440/2263/tut3q.png

Now lets head back to VTFedit and start our work.


Go to file and Save As. Once here, make the name "custom_name" or something that is not used by valve textures so you can find it easily in hammer such as "wow_texture".
MAKE SURE YOU SAVE IT IN C:\Program Files\Steam\steamapps\USERNAME\counter-strike source\cstrike\materials\mytextures OR IT WILL BE CORRUPT!

http://img819.imageshack.us/img819/3322/tut40.png

Once you have finished that, go back to VTFedit and select tools and click 'Create VMT file'

Skip to options and select Surface1 to sound like how the surface would sound. I select concrete because I am using a concrete texture. If it is glass, you would click glass and check Translucent.

http://img560.imageshack.us/img560/2572/tut5.png


You are done! Did it work?!

http://img820.imageshack.us/img820/9609/tut6.png

OF COURSE IT DID!
Keep in mind, these are flat textures, not blended ones. I'm no good with blending textures, takes a lot of time.




NOW! For this map to work for other players, you must Pakrat the textures into the Bsp.
First, download Pakrat. Gamefront (http://www.filefront.com/13027399/pakrat-095.zip/)

Compile your map, and place the .bsp on your desktop.

Open up Packrat.jar and select your map.bsp

http://img217.imageshack.us/img217/2979/tut7.png

Once that is done. Select add, and search for 'mytextures'

http://img19.imageshack.us/img19/7996/tut8.png

Once there, CTRL+click all the textures you used. Their VMTs and VTFs.

http://img193.imageshack.us/img193/89/tut9.png

Once that is done, go to file, save as BSP. AND YOU ARE DONE!

http://img193.imageshack.us/img193/2816/tut10l.png

http://img37.imageshack.us/img37/3523/tut11.jpg

HZK
30 Apr 2011, 09:57am
Just a point:

When you pakrat a map, don't move the bsp to the desktop, put it in your game directory maps folder, when you open up pakrat go to file>preferences and set your game directory (C:\Programfiles\Steam\Steammaps\account\counter-strike source then click open on cstrike). This way you can access the maps, materials, models and sounds folders faster than putting them on the desktop.

mapper
30 Apr 2011, 10:03am
Just a point:

When you pakrat a map, don't move the bsp to the desktop, put it in your game directory maps folder, when you open up pakrat go to file>preferences and set your game directory (C:\Programfiles\Steam\Steammaps\account\counter-strike source then click open on cstrike). This way you can access the maps, materials, models and sounds folders faster than putting them on the desktop.
If you do this, pakrat may be bugging and it wont be able to find your mapfile. When you place the .bsp on your desktop, you dont get this weird error.

ZezXion
30 Apr 2011, 10:04am
If you do this, pakrat may be bugging and it wont be able to find your mapfile. When you place the .bsp on your desktop, you dont get this weird error.

Exactly my reason for not doing that.

HZK
30 Apr 2011, 10:08am
If you do this, pakrat may be bugging and it wont be able to find your mapfile. When you place the .bsp on your desktop, you dont get this weird error.

That's strange.
It hasn't happened to me :/

ZezXion
30 Apr 2011, 10:08am
That's strange.
It hasn't happened to me :/

You're just lucky.

HZK
30 Apr 2011, 11:23am
Anyway, it's actually a really good tutorial.
Could assist any new mapper :thumb:

Suicide
30 Apr 2011, 02:04pm
Nice tut. :)