mjens Posted September 25, 2007 Report Posted September 25, 2007 Hi, I have made a model (in 3ds max 9) with diffuse texture. I want also to make a specular and normal map. Where I have to aply those textures to work fine with exporter and game engine?
Erratic Posted September 25, 2007 Report Posted September 25, 2007 They're just specified in the .vmt if I recall correctly. Been a few months since I did this. There should be some info on the valve dev wiki here with the stuff you have to enter in. One tip though is you should store your spec map in the alpha channel of your normal map image file and use: "$normalmapalphaenvmapmask" 1 for pointing the vmt to it. At least I think that's the common practice and the 'cleanest' way to store all this stuff. Or so I found, I could be wrong there.
Wunderboy Posted September 25, 2007 Report Posted September 25, 2007 When you export an SMD from Max 9, it takes the name of the texture in the diffuse channel and exports that for each face. Source doesnt actually use that texture, what it does is look for a VMT file for the same name, so if your diffuse texture was "mytexture.tga" Source will be looking for "mytexture.vmt" in each of the material paths you specify in your QC. Inside the VMT file itself is where you set-up your components for the shader, i.e. specular, diffuse, exponent, etc.
mjens Posted September 25, 2007 Author Report Posted September 25, 2007 Thanks a lot - now I know everything what I want :>
Recommended Posts