I am having a visibility issue in one of my maps that I can't get my head around. Basically certain items in the map appear to flicker when viewed, but only from a particular location. I recorded this to help demonstrate:
The spinning item you see is a func_rotating, and wall around it that is flickering is a func_breakable. Most of everything else you see is actually a func_detail.
This is the same view in Hammer with the visleaves enabled:
It may not be clear from this screenshot, but I'm not crossing any visleaves when I move.
I'm not sure if it's the location that's the issue or the glass it's being viewed through as it is a custom made texture. It's a simple white layer set to 20% opacity (created in GIMP, base layer 100% transparent, 2nd layer white with the opacity reduced).
I mention this even though I've had this issue with stock textures (previously I was using 'glass/glasswindow001a') but I had heard a rumor that I might be able to fix this issue with a certain parameter in the .vmt file, except I have no idea which parameter is supposed to be the magic one! Because of that. I've added various ones and experimented a bit, but so far I've not had any luck.
Here's the .vmt file in question:
Therefore my question is this - Does anyone know how to fix/prevent this flickering?
This is the same view in Hammer with the visleaves enabled:
It may not be clear from this screenshot, but I'm not crossing any visleaves when I move.
I'm not sure if it's the location that's the issue or the glass it's being viewed through as it is a custom made texture. It's a simple white layer set to 20% opacity (created in GIMP, base layer 100% transparent, 2nd layer white with the opacity reduced).
I mention this even though I've had this issue with stock textures (previously I was using 'glass/glasswindow001a') but I had heard a rumor that I might be able to fix this issue with a certain parameter in the .vmt file, except I have no idea which parameter is supposed to be the magic one! Because of that. I've added various ones and experimented a bit, but so far I've not had any luck.
Here's the .vmt file in question:
Code:
LightmappedGeneric
{
"$basetexture" "custom/tf2_general/glass_no_sound_002"
"$surfaceprop" "Default_Silent"
"$reflectivity" "[0.10 0.10 0.10]"
"$alpha" "0.2"
"$alphatest" "1"
"$alphatestreference" "0.5"
"$selfillum" "1"
"$nodecal" "1"
"$nofog" "1"
"$color" "[0.53 0.53 0.53]"
"%keywords" "tf,glass"
}
Therefore my question is this - Does anyone know how to fix/prevent this flickering?