specular maps Created 16 years ago2007-10-28 04:22:32 UTC by sgv3dmax sgv3dmax

Created 16 years ago2007-10-28 04:22:32 UTC by sgv3dmax sgv3dmax

Posted 16 years ago2007-10-28 04:22:32 UTC Post #237164
I have a specular map for the model which i imported into Hammer. The diffuse and normal are getting displayed properly in game after compiling. But, i am not able to see the specular and opacity maps. The code i used for diffuse and opacity in the .vmt file is:

"VertexLitGeneric"
{
"$baseTexture" "models/recycle_bin/Bin_diffuse"
"$envmap" "env_cubemap"
"$bumpmap" "models/recycle_bin/Bin_lowpolyNormalsMap"
"$envmapsaturation" .5
"$envmapcontrast" 2
"$envmaptint" "[ .6 .6 .6 ]"
"$normalmapalphaenvmapmask" 1
}

Also, how do i change the env_cubemap into something else? I hope if the specular map works, the env map is not needed at all.
Posted 16 years ago2007-10-28 07:12:02 UTC Post #237167
I assume you just use a file location after $envmap instead of env_cubemap.
AJ AJGlorious Overlord
Posted 16 years ago2007-10-28 13:40:42 UTC Post #237186
Tried it. Doesn't help.
Posted 16 years ago2007-10-28 20:20:50 UTC Post #237193
@Ant: You use "env_cubemap" at the end of the "$envmap" command, so that's not the problem :) .

Make sure that the map you're testing the model in has a cubemap somewhere. Also make sure that if you're using the normalmapmask command (which you are), the normal map's alpha layer is NOT completely black. Black = no reflection, white = 100% reflection. And I'm not certain about this, but if there isn't an alpha layer in the normal map, get rid of the normalmapmask entirely (because alpha layers default to black when you create them in Photoshop (It's just a guess :) )).

To rule all those possibilities out, you may just want to comment out all of those lines except for "baseTexture," "envmap," and "bumpmap."
Posted 16 years ago2007-10-29 19:11:29 UTC Post #237281
Tried verything RotatorSplint said, but still i am not able to get the specular map effect. The model is reflecting the env map like a mirror.
Posted 16 years ago2007-10-30 23:14:25 UTC Post #237388
.. Did you build your cubemaps? :)
You must be logged in to post a response.