Dynamic Displacement Textures
Posted May 25, 2019, 8:54 PM UTC
Posted May 25, 2019, 8:54 PM UTC
A jailbreak mail called jb_shapeshifter does this. There are several buttons that the players can press and change the look of the map.
https://steamcommunity.com/sharedfiles/filedetails/?id=1440491641&searchtext=
From the screenshots I don't see any displacements, they're all flat surfaces - brushes, whose materials can be easily changed with texturetoggle and mmc. Displacements' however, cannot.
I discovered this method myself and would love to see if anyone else had also stumbled upon it. The engine had been around for a long time, afterall.
Oh, im sorry. I toss most things aside on reddit (don't even read into/think about it) because like 80-90% of it isn't new or interesting. I also haven't dealt with changing textures personally so I couldn't remember that it wasn't possible with displacements.
tutorial soon
I'm guessing that this "isn't normally possible" method is more complex than a few settings in hammer or adjusting property values. Since displacements aren't normally entities and therefore cannot be changed, I'm guessing you either added/changed displacements so that they are entities now or a new entity looks for a texture and replaces it.
Really interesting. Looking forward to the tutorial.
So what is this ?
2 .vtf with multiple frames ?
And one vmt that use the first vtf as main texture and the second as 'alpha paint' texture ?
Simply rendering 1 func_brush that use that vmt, which get modified with env_texturetoggle make the changes appear for every other brush in the map ?
Unless, you did a special trick to make it work with displacement
Yes, that's pretty much it.
This seems useless apart from having animated signs and billboards ( I'm not a creative person so there is probably alot more). But it's always good to know the limits of source!
It's not suited for every map and game type. It's a niche technique that could be needed in custom gamemodes. Especially singleplayer maps.
For flat signs, changing brush texture is already possible with material_modify_control and env_texturetoggle anyway, this workaround is specifically on displacements, which isn't normally possible.
I'm guessing.. Propper the displacement into a model with multiple skins?
It's just custom textures and hidden brushes. Probably abusing the way materials are drawn in the engine. They're not models
But it's a displacement, you can't tie displacements into brushes?
maybe waving grass blades?
Wow, this brings some interesting ideas.