Turning textures off and on.

invertMASA

L3: Member
Nov 9, 2013
103
1
Im making a party room, and I am making what looks like projection mapping. So is there away to turn textures off and on, So I can switch between textures on the screens?
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
You can send a prop_dynamic Skin inputs, which will (ironically enough) change the skin the model uses. If you aren't using a model you'll have to make several func_brushes in the same place, then enable one and disable the rest.
 
Mar 23, 2013
1,013
347
You can send a prop_dynamic Skin inputs, which will (ironically enough) change the skin the model uses. If you aren't using a model you'll have to make several func_brushes in the same place, then enable one and disable the rest.

or you can use this texture_toggle entity. I forgot how it works though but it's better then using 2 func_brushes which can't have stickies stick to it and no colision to some physical entities
 

Izotope

Sourcerer
aa
May 13, 2013
698
764
In order for env_texturetoggle to work properly, your overlay or at least one face of your brush must use a VMT material with the ToggleTexture proxy defined and pointing to an Animated VTF file with at least two frames.

https://developer.valvesoftware.com/wiki/Env_texturetoggle

I use this entity in my map to visualize the activation/deactivation of a conveyorbelt using a custom texture and material.