r/hammer•
SamXZ

Dynamic Displacement Textures

Posted May 25, 2019, 8:54 PM UTC

4312
LiquidRaid3n•

Wow, this brings some interesting ideas.

7
Revoker•

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=

4
SamXZOP•

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.

8
Revoker•

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.

1
Nymphalow•

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

1
SamXZOP•

Yes, that's pretty much it.

1
AtomicSpeedFT•

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!

-1
SamXZOP•

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.

7
LordDz•

I'm guessing.. Propper the displacement into a model with multiple skins?

1
SamXZOP•

It's just custom textures and hidden brushes. Probably abusing the way materials are drawn in the engine. They're not models

1
LordDz•

But it's a displacement, you can't tie displacements into brushes?

1
AwakenGreywolf•

maybe waving grass blades?

2