[Tutorial]How to make a classique texture for hl2

Kh

New Adventurer
Joined
Nov 11, 2007
Messages
70
Reaction score
0
How to make a classique texture for hl2


I]Generalities

A texture is composed with 2files MINIMUM
- One file VTF who is the texture
- one file VMT who defines where is the texture and somes others things

To make easily the VTF,use this plug-in:
http://khelben1.free.fr/root/Utilitaires/psvtfplugin108.zip

You need photoshop 6 or later..

1) Close Photoshop.
2) Extract VTFLib.dll in ..\Photoshop\
3) Extract VTF.8bi in ..\Photoshop\Plug-Ins\File format\
or ..\Photoshop CS\Modules externes\File format\
4) Launch Photoshop.

plugin_vtf.jpg


Templates :
Compressed Texture
Compressed Texture with Alpha
DuDv Map
Generic (Default)
Normal Map
Normal Map with Alpha
Sky
Uncompressed Texture
Uncompressed Texture with Alpha

II]Classique textures

Make your texture with your favorite logiciel,then,open it with photoshop (if itsn't already done)
Now juste save the picture in the VTF format

format.jpg


Choose the compressed textures template

warning: to save in VTF format,there is some conditions :
- Picture must be Coulor RVB (16M coulors) not 256 coulors or less
- picture must have 8bits/couche not 16

format2.jpg


Structure of the .VMT:

To make the .vmt just put that code in a bloc note file saved in "Texture.vmt"

"LightmappedGeneric"
{
"$basetexture" "Acces road" <= acces road without ../materials/ and without extension .vtf
"$surfaceprop" "material sort" <= define the sound and the brightness(1)
"%keywords" "key to find him in hammer"
}

List of the "material sort":
wood
woodpanel
cardboard
paper
papercup

glass
glassbottle

dirt
mud
quicksand
sand
concrete
rock
boulder
gravel
brick
plaster
tile

Sorts of caoutchoucs:
rubber
rubbertire
slidingrubbertire
brakingrubbertire
slidingrubbertire_front
slidingrubbertire_rear

sorts of metal:
metal
metalgrate
metalvent
metalpanel
metal_barrel
solidmetal
gunship
metal_seafloorcar
canister
chainlink
ladder
popcan
strider
computer
grenade


flesh
bloodyflesh
alienflesh
rmorflesh
watermelon


water
snow
ice
carpet
wade
plastic
roller

Put the VTF and the VMF in the same file
exemple:
../steam/steamapps/khelben/Counter-strike source/cstrike/materials/tutotexturing/texture.vtf

../steam/steamapps/khelben/Counter-strike source/cstrike/materials/tutotexturing/texture.vmt

exemple of a vmt:
"LightmappedGeneric"
{
"$basetexture" "tutotexturing/texture"
"$surfaceprop" "paper"
"%keywords" "tuto"
}

Thanks for reading,and good texturing to you ;)

kh ,or khelben in intimity.
 

Kh

New Adventurer
Joined
Nov 11, 2007
Messages
70
Reaction score
0
New information:

There is a software to make the vtf easily whitout photoshop.

Use it:

http://khelben1.free.fr/root/Utilitaire ... 26-bin.zip
(launcher in bin/VTFedit.exe)

Just do : files-->new .

Choose your picture (jpg,gif,what you want)

Then option:autocreate vmt files.

Save it in your hl2 material directory.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Well, if I was making Source textures (<_<) I'd be making them in Photoshop, so it'd be nice to have the plugin. Give me a heads up if you ever find a working link for the VTF plugin.
 
Top