Help Reskinning A Weapon

I am trying to make a high quality custom reskin for a friend, and I was wondering how to make the “normal” vtf’s, an example of which is pictured below (because i don’t even know the actual term) I know this helps to make the skin to be of higher quality, and even modifies the way light reflects off of it, i just have no idea how to make one, or if you even just have to completely redo the skin.

Example of a “normal” pic:

http://img33.imageshack.us/img33/183/gripnormalold.jpg

I am using the VTF photoshop plugin. Thanks in advance.

There is a plugin somewhere from NIVDIA for making normal maps (the actual term, but can also be called “bumpmaps” which is how they are reffered to in the VMT, i’ll come to taht in a min) in Photoshop, it is a filter, which I think takes the lighting in your texture and converts upward looking parts to an upward “emboss” (for want of a better term) and downward looking parts to a downward “indent”.

This is then read by the program you use it in (in this case it will be GMod, but you can use them for renders aswell and in other games like UT3) and it makes the parts that look embossed stick out and the indented parts look indented. This is a technique used to allow you to have the illusion of a high detailed model on a low detailed model (which is another way you can make normal maps but its much more complex).

I’ve said about the Photoshop filter plugin, but personally I use the GIMP one (mainly because I don’t have Photoshop, but I believe also, from what i’ve seen, the quality in the bumpmaps produced in the GIMP one is better than the photoshop one, but I could have just seen crap Photoshops ones :P).

Ok, to implement a normal map (after you’ve made it), you must open the VMT for your texture (you do know what a VMT is right?) and it will likely look like this:


"VertexlitGeneric"
{
	$basetexture "models/path/name"
}

(for the most basic texture with no extra parameters, also note I have not put “quotation marks” around the parameter name as it is not actually needed but some people do still put them there)

Ok now to add your normal map you must convert it to a VTF and name it how you want (but i’d advise something like “textureitsfor_normal” so youknow what it is.

Now you must get it so GMod knows to use your normal map to do this you add the line $bumpmap to your VMT like so:


"VertexlitGeneric"
{
	$basetexture "models/path/name"
	$bumpmap "models/path/name_normal"
}

This should now correctly (if you put the path right and spelt the name right :P) reference your normal map for the texture.

Hope that makes some sort of sense to you and you now understand what normal maps are and how to implement them in GMod (or other Source games) :smiley:

Thank you, you should become a mod for this section, youve answered more of my dev related questions than anybody else. You’re awesome :smile:

:smiley: Thanks alot, I try my best to help out how I can ^^

Well, you do good. Here’s how it turned out :smiley:

http://img8.imageshack.us/img8/2222/newdeagle.jpg

(Its a dragon deagle skin. Really simple, just looks cool.)

Nice :slight_smile:

Engraving on the barrel needs alot of work, it looks like you just put gold stickers on it. Make it look more like this:

http://chltx.net/zen-cart/images/DE_Black.jpg

Use a much less bold font.

Ya… that was my first attempt, cut me some slack, although i’m still working on it.