Creating terrain? And prop textures

Nightcrouser

L1: Registered
Dec 29, 2014
2
0
Im new to this so be gentle, couldnt find anything about this.
Whats the best way to create terrain (as in dirst and grass), can you even do it in Hammer? AND can you change the textures of props in Hammer or do you HAVE to use another program?
 

Uncuepa

aa
Oct 25, 2014
793
1,160
Terrain is created using displacements, which is a fancy name for a brush that has had its sides turned into meshes. To create one for terrain (I suggest making a test file for this first time, until you know what to do) go to the Toggle Texture Application tool on the left, select the top of the ground, go to displacement in the Toggle Texture Application window and select "Create". A window will pop ask asking for a level, 2 is low poly but is good for testing and early versions of maps, 3 is good for polished maps and level 4 is pretty broken, and will crash things. I wouldn't use level 4. Then, use the paint geometry to add terrain height like bumps and hills, like you would see in game.

To add grass/dirt to the terrain, search for 'blend' in the texture library, apply it to your displacement, and then use the "Paint Alpha" tool in the displacements tab to add grass/dirt. It will look really basic in Hammer, but if you used a blend texture with special gradients, when you compile it will look like proper grass/dirt.

That's long and confusing, but I hope it helped!
 

Nightcrouser

L1: Registered
Dec 29, 2014
2
0
Terrain is created using displacements, which is a fancy name for a brush that has had its sides turned into meshes. To create one for terrain (I suggest making a test file for this first time, until you know what to do) go to the Toggle Texture Application tool on the left, select the top of the ground, go to displacement in the Toggle Texture Application window and select "Create". A window will pop ask asking for a level, 2 is low poly but is good for testing and early versions of maps, 3 is good for polished maps and level 4 is pretty broken, and will crash things. I wouldn't use level 4. Then, use the paint geometry to add terrain height like bumps and hills, like you would see in game.

To add grass/dirt to the terrain, search for 'blend' in the texture library, apply it to your displacement, and then use the "Paint Alpha" tool in the displacements tab to add grass/dirt. It will look really basic in Hammer, but if you used a blend texture with special gradients, when you compile it will look like proper grass/dirt.

That's long and confusing, but I hope it helped!

OH MY GOD, thats alot easier than the way i tried doing it, with the clipping tool. Thank you!
 

henke37

aa
Sep 23, 2011
2,075
515
As for the question about changing model textures: no, but you can select a different texture set. The sets are called skins and are set by the model compiler.

As for displacements, remember that they don't seal the map and require some care when being stitched together.
 

Muddy

Muddy
aa
Sep 5, 2014
2,575
4,592
OH MY GOD, thats alot easier than the way i tried doing it, with the clipping tool. Thank you!
When I was new to Hammer, I tried using the clipping tool to make bumpy terrain too. And then I wondered why my compile times were so long...

(Note: I didn't know what func_detail was either.)
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
I also want to point out that large, open areas of terrain work best when they're made of a grid of several square displacements rather than a few large ones/different shapes. If you keep them small and identical, then you can use several low power displacements to achieve the same look as a high power one, easily sew the edges together, and you won't have obvious seams in the blend texture due to misaligned vertices. Just select all of them before painting geometry/alpha to treat them as one.

And like henke37 said, many models (like those that have red/blu variants) can be switched by setting 0, 1, 2, etc. as the Skin value.
 

henke37

aa
Sep 23, 2011
2,075
515
It's a subtle thing, but skins are sets of materials. One skin can use multiple materials.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
543
Regarding displacements, try to use power of 2, power of 3 on places where you need but never 4 or above.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
There are power 4 displacements in Gorge. Is the issue something to do with the compile process that broke a few years back?
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
There are power 4 displacements in Gorge. Is the issue something to do with the compile process that broke a few years back?

I heard it's because power 4 displacements can crash the map if they interact with physics objects like ragdolls and stickies.
 

Spipper

Former cheese man Gorgonzola
aa
Feb 18, 2012
246
407
I'm pretty sure displacements with a power of 4 is perfectly fine, as long as they are pretty large (In Gorge every single displacement smaller than 512 x 512 is a power of 3 or smaller).
IIRC it's all about the density of the vertices. If the density is way too high, calculating collision with physics objects will be too complicated and therefore results in a crash.