Reflective Bump Mapping Created 18 years ago2006-02-28 04:49:18 UTC by Guinea Pirate Guinea Pirate

Created 18 years ago2006-02-28 04:49:18 UTC by Guinea Pirate Guinea Pirate

Posted 18 years ago2006-02-28 04:49:18 UTC Post #165465
How is it done? Is there a link to a tutorial on it?
Posted 18 years ago2006-02-28 05:01:41 UTC Post #165467
[quote]"LightmappedGeneric"
{
"$basetexture" "texture/path"
"$envmap" "env_cubemap"
"$bumpmap" "texture/path_normal"
"$envmapsaturation" 1
"$envmapcontrast" 1
"$envmaptint" "[ .x .x .x ]"
"$normalmapalphaenvmapmask" 1
}
[/quote]

You need to be defining the envmap strings as well as the bump map path. I stole the base code from one of the stone floor materials, you'll need to tweak your tint values and experiment with saturation and contrast.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 18 years ago2006-03-01 18:49:38 UTC Post #165829
User posted image

I got it working, but with undesired results.
"LightmappedGeneric"
{
"$basetexture" "memorial/aliveriblack"
"$envmap" "env_cubemap"
"$bumpmap" "memorial/aliveriblack_normal"
"$envmapsaturation" 1
"$envmapcontrast" 1
"$envmaptint" "[ .x .x .x ]"
"$normalmapalphaenvmapmask" 1

}
Thats what I used, I dont what to set the other values to.
Posted 18 years ago2006-03-01 18:59:20 UTC Post #165833
give some values to the $envmaptint like [0.5 0.5 0.5] instead of [ .x .x .x ]

Edit: give us some idea of what you really want the texture to look like
Posted 18 years ago2006-03-01 19:17:33 UTC Post #165837
Still looks the same :
Posted 18 years ago2006-03-01 19:19:56 UTC Post #165838
Added cubemaps? Built the cubemaps?
AJ AJGlorious Overlord
Posted 18 years ago2006-03-01 19:42:24 UTC Post #165841
Cubemaps have been added, and when I type buildcubemaps in the console, it still has that stupid checkerboard pattern.

It also has that pattern when in hammer.
Posted 18 years ago2006-03-01 20:11:28 UTC Post #165847
The checkerboard patter means one of the material files is not properly loaded. I had this error and the problem was that the bumpmap (_normal) texture was not properly compiled.
Posted 18 years ago2006-03-01 22:02:23 UTC Post #165866
Any idea how to fix it?
Posted 18 years ago2006-03-01 22:29:27 UTC Post #165873
Never mind. I found what was wrong. I didnt realize you had to make a _normal map as well as the original .vtf.

Very helpful to anyone who wants to bump map http://developer.valvesoftware.com/wiki/Creating_Normal_Maps
Posted 18 years ago2006-03-01 22:39:33 UTC Post #165874
/me slaps you
AJ AJGlorious Overlord
You must be logged in to post a response.