Metal texture

Spike

L10: Glamorous Member
Feb 13, 2008
716
82
Hello, I'm doing a model which has a metal texture, I've made a metal texturebut it looks very bad in-game, you don't have the feeling that it is a metal model. I would want to know which are the .vmt proxys that change the texture appearence. Some cool shaders and stuff, i don't know which one of them use, and how to use them.
 

efciem

L69: Deviant Member
Mar 31, 2008
69
6
alpha mask!

"VertexLitGeneric"
{
"$basetexture" "metalbox/metalbox_diffuse"
"$model" 1
"$surfaceprop" "metal"
"$bumpmap" "metalbox/metalbox_normal"
"$normalmapalphaenvmapmask" "metalbox/metalbox_normal"
}

Will set specular reflectiveness/shine to your texture

If your model has a normal map that is..
the other option is to use the alpha channel on the base texture for your model.. or you can just use a seperate texture all together but your better off using an alpha channel.



$basealphaenvmapmask <bool>
Use the alpha channel of $basetexture as the specular mask.
When putting your specular map in the alpha channel you will have to invert it, or else it will work the wrong way round.

$normalmapalphaenvmapmask <bool>
Use the alpha channel of $bumpmap as the specular mask.
This must be used if the material has a bump map.


Example I made :
DIFFUSE :
metalbox_diffuse.jpg


Normal Map:
metalbox_normal.jpg


Normal Map's Alpha Channel :
metalbox_normal-alpha.jpg



When you use Alpha Channels for Specularity it works like Transparency effects would..

Scale from black to White for how Shiny the surface is ...
 

Spike

L10: Glamorous Member
Feb 13, 2008
716
82
Thanks a lot. Your information will be very useful!