

With a shader chosen, you're onto parameters (also called commands). Parameters For a list of all documented shader parameters, see Category:List of Shader Parameters. The third most common shader is UnlitGeneric, which is used for UI materials and the occasional tool texture. There are many shaders to choose from, but most materials will use either LightmappedGeneric ( brushes) or VertexLitGeneric ( models). Warning: Although your computer will let you save a file name that contains the % character, and VTFs work just fine with the character in the name, Hammer can not handle VMTs whose names contain the % character. For your material to be detected, you must save it under your game or mod's \materials folder with the extension. Materials are script files that can be created in any text editor, but it's recommended that you use Notepad++ in conjunction with the community-made syntax highlighting rules. See Valve Texture Format#Image_flags for descriptions of each.įinally, save the file somewhere under your game or mod's \materials folder. Now all that is left is configuring the texture with the options in the checkbox list on the left-hand side of the screen. When you hit OK the input file is converted (there may be quite a lengthy pause for large images) and the output VTF appears. You'll want to do this properly with an image editor for the material you ship, but the automated option is there if you want quick results or a base to work from. These (mis-labelled) settings allow you to automatically generate a bump map from your input image. Select your image and you will be presented with the import screen: To import your texture with VTFEdit, use File > Import or press Ctrl+I. (There are VTF plug-ins that let you save to the format directly from Photoshop, GIMP and Paint.NET, but this tutorial will not cover them as not everyone uses those tools.) Also, if you have textures that use transparency, it is recommended that you save them in TIFF format before importing to VTFedit as PNG transparency tends to have problems. There are a handful of situations where you'll need to fall back on VTEX… but only a handful. Please be sure also to check out the Tag Gallery and see. I hope you enjoy my blog and have fun with my tutorials.


As well as tag tutorials, I also have a Tips and Tricks page where you will find tutorials on basic Paint Shop techniques.

It's a command line tool with quite a few limitations, so the third-party tool VTFEdit is preferable: it provides a graphical user interface, allows you to change a texture's properties without re-compiling it from scratch, accepts a wide range of image formats, and doesn't require the creation of script files for each and every texture. I have always loved doing tutorials written by others and a couple of years ago started writing them myself. The tool Valve provides for this is VTEX. Textures must be converted to the Valve Texture Format before Source can use them.
#VMT EVN MASK CODE#
In your v_shotgun.vmt, it would read similar to the code posted above, substituting the directory of your v_shotgun.vtf and v_shotgun_normal.vtf in the appropriate places.īasically, the code is telling the shading on the model to act independent of outside light sources, so even in the dark, parts of the model still "glow." If you don't mask out only the parts you want glowing, the entire model stays illuminated, even in pitch black, which looks really horrible.Note: The file size limit is 33,554,432 bytes. Save this as your new texture, then create a new blank normal map and save it as v_shotgun_normal or whatever. Add the textures you want to glow, then tab over to the color channels and add an alpha map, where everything except what you want to glow is masked out in black.
#VMT EVN MASK SOFTWARE#
vtf/.tga capable image editing software you've got. Open v_shotgun in photoshop, gimp, or whatever. I dont know what alpha channel is or does, the same with the phong mask, maybe you could throw in some few screens? Thanks for the reply, but tbh, i dont really understand anything at all :/
