Metal texture

Discussion in 'Mapping Questions & Discussion' started by Spike, Jul 19, 2008.

  1. Spike

    Spike L10: Glamorous Member

    Messages:
    716
    Positive Ratings:
    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.
     
  2. efciem

    efciem L69: Deviant Member

    Messages:
    69
    Positive Ratings:
    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 :
    [​IMG]

    Normal Map:
    [​IMG]

    Normal Map's Alpha Channel :
    [​IMG]


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

    Scale from black to White for how Shiny the surface is ...
     
    • Thanks Thanks x 2
  3. Spike

    Spike L10: Glamorous Member

    Messages:
    716
    Positive Ratings:
    82
    Thanks a lot. Your information will be very useful!