custom texture issue: overlay with reflection

  • If you're asking a question make sure to set the thread type to be a question!

Malcolm

L3: Member
Jul 10, 2008
123
25
Hi

I have edited and heavily modified Valve's puddle-overlay from hl2 to fit into my rain-themed tf2-map. I had to change most parts of the vmt in order to achieve a functional overlay with proper (cubemap-)reflection, but after spending 2 hours on it, I finally managed to get the overlay in tf2.

Now my problem: as long as I have only one env_cubemap in the map, the puddle-overlay keeps showing the right cubemap. But when I place another in the far end of the map, the overlays start showing the reflections of the last placed env_cubemap. I tried to assign the cubemaps to the brushes the puddles are on, but this didn't help.

Here the content of the overlay's vmt:

"UnlitGeneric"
{

"$basetexture" "custom/mirage_puddle001a.vtf"
"$envmap" env_cubemap
"$translucent" "1"
"$decal" 1
"$decalscale" 0.25
"$envmaptint" "[ 1 1 1 ]"
"%keywords" "tf"
}

I hope someone will guide me to the solution of the stupid, mind-hacking problem.
 

Malcolm

L3: Member
Jul 10, 2008
123
25
Yes, I did. I have another reflective custom texture in my map as well as water, and bother work properly (they have the right cubemaps assigned), so I guess it's something wrong with this puddle-texture.