Custom materials tips Created 18 years ago2006-06-03 19:00:30 UTC by Xyos212 Xyos212

Created 18 years ago2006-06-03 19:00:30 UTC by Xyos212 Xyos212

Posted 18 years ago2006-06-03 19:00:30 UTC Post #183612
Ive been going through painful moments in order to understand and do a decent bumpmapped texture with a reflected mask. I thought I had the answer before, but then tested it, and it didnt work. Now I have the answer, and it has been proven!!!

This guide assumes you read the Valve wiki on normal mapping, and reflective materials:

http://developer.valvesoftware.com/wiki/Reflective_Materials

http://developer.valvesoftware.com/wiki/Creating_Normal_Maps

Quick guide to masking a reflection on a normal map:

1)The targa file that is the _normal file must be normal mapped first.

2)After the normal map, copy/paste the image of the normal map to another canvas of the same dimensions. (duplicate option) The copied version must now be in greyscale. White is full reflection, black is no reflection.

3)Now after you screw with the white/black, go back to the original normal map. Create a new channel (alpha)

4)Now go to the greyscale. Leave it in grey mode and ctrl A (select all) paste it to the alpha channel of the normal map.

5)Save in 32 bit format, compile it to a VTF.

6)Now, the regular VTF (not the _normal version) must have a vmt. In the vmt make sure to put "$normalmapalphaenvmapmask" 1 along with all the other parameters needed.

BIG helper!!!: Download the VMT plugin for photoshop to reopen compiled VMT's and screw with it until you get the handle of it. (instead of having to create more and more textures to test)

Download here: http://nemesis.thewavelength.net/index.php?p=39

VTF edit (GUI) is very good too: DL here:

http://nemesis.thewavelength.net/index.php?p=40
Posted 18 years ago2006-06-04 06:02:28 UTC Post #183672
Hm, I'm not sure about reflections but I know that normal maps are piss easy.

Just use the Nvidia tool and export it and compile it. Then you get the plain texture and add a line $bumpmap and point to where the normal .vmt is.

I'll probably have a look at the links later :)

EDIT: Could you tell me how to install the plugin? I'm not quite sure which file goes where :(
Posted 18 years ago2006-06-04 15:17:47 UTC Post #183745
yes normal maps (not bumpmaps, they are old) are simple, but masking a reflection on a normal map is annoying. (its easy when you get it, but the directions for doing it are very hard to understand. Thats why I made this thread)

VTFlib DLL file goes in the Photoshop/folder. (Example: C:programfilesadobephotoshop

VTF.8bi goes in photoshop/plugins.

When opening a file, change the type to VTF, and when saving, make sure as one of the parameters is normal mapped and alpha 1.
You must be logged in to post a response.