How to Add Water to Your Map in Hammer Editor

So you've made your map, but you feel like it's a little dry? Water can add some visual flair to your map as well as interesting gameplay possibilities. Here's how you can add water to your hammer maps. Simple bodies of water include...
Method 1 of 2:

Simple Bodies of Water

Simple bodies of water include things such as pools, things with simple geometric shapes.

  1. How to Add Water to Your Map in Hammer Editor Picture 1How to Add Water to Your Map in Hammer Editor Picture 1
    Select the block tool (located by default on the left-hand side of your hammer window).
  2. How to Add Water to Your Map in Hammer Editor Picture 2How to Add Water to Your Map in Hammer Editor Picture 2
    Make sure in your objects toolbar is configured appropriately (categories is set to primitives and object is set to an appropriate shape), and your texture is set to tools/nodraw.
  3. How to Add Water to Your Map in Hammer Editor Picture 3How to Add Water to Your Map in Hammer Editor Picture 3
    In one of the three 2D grid views, click and drag a box. Make sure it is the right size for your body of water in the other two 2D views, then press enter to create your block.
  4. How to Add Water to Your Map in Hammer Editor Picture 4How to Add Water to Your Map in Hammer Editor Picture 4
    Now to turn this block into water, select the toggle texture application tool, located in the left-hand toolbar directly under the block tool and the face edit sheet window should appear.
  5. How to Add Water to Your Map in Hammer Editor Picture 5How to Add Water to Your Map in Hammer Editor Picture 5
    Hit browse and filter for water, select the water texture you want, then right click the top face of the newly created block to apply the water texture to it.
  6. How to Add Water to Your Map in Hammer Editor Picture 6How to Add Water to Your Map in Hammer Editor Picture 6
    Now you have to tie a cubemap to your water, which will create the textures that the water reflects. Select the entity tool and in the objects toolbar set the category to entities and the object to env_cubemap.
  7. How to Add Water to Your Map in Hammer Editor Picture 7How to Add Water to Your Map in Hammer Editor Picture 7
    In the 3D view, left click somewhere in the middle of your body of water to create the cubemap entity.
  8. How to Add Water to Your Map in Hammer Editor Picture 8How to Add Water to Your Map in Hammer Editor Picture 8
    With the env_cubemap selected, press alt+enter to open the object properties dialogue. From here select brush faces then press pick and left-click the top face of your water in the 3D view. Your cubemap is now tied to the surface of the water.
  9. How to Add Water to Your Map in Hammer Editor Picture 9How to Add Water to Your Map in Hammer Editor Picture 9
    Finally, you need to create a "water_lod_control". This entity controls when the water in your map becomes replaced with "cheaper" water depending on how far you are from the water. The process is the same as steps 6 and 7, but instead of env_cubemap, select water_lod_control in the objects menu.
  10. How to Add Water to Your Map in Hammer Editor Picture 10How to Add Water to Your Map in Hammer Editor Picture 10
    Now press F9 to compile and run your map and enjoy your fancy new water!
Method 2 of 2:

Complex, or Natural Bodies of Water

Creating more natural looking bodies of water in hammer requires a few different steps, and a few of the same. You would use this tutorial in for things like streams, ponds, puddles, and lakes.

  1. How to Add Water to Your Map in Hammer Editor Picture 11How to Add Water to Your Map in Hammer Editor Picture 11
    This time start by selecting the texture application tool, and left clicking the surface of the dirt. Then switch from the materials tab, to the displacement tab in the face edit sheet window.
  2. How to Add Water to Your Map in Hammer Editor Picture 12How to Add Water to Your Map in Hammer Editor Picture 12
    Click the create button and the displacement create window will pop up. Select a power of 4 and click OK.
  3. How to Add Water to Your Map in Hammer Editor Picture 13How to Add Water to Your Map in Hammer Editor Picture 13
    Next select paint geometry and the displacement paint geometry window will open. This tool lets you create bumps and dips in the face of your object. Distance relates to how deep or high these bumps and dips will be and the radius relates to the size of your brush.
  4. How to Add Water to Your Map in Hammer Editor Picture 14How to Add Water to Your Map in Hammer Editor Picture 14
    In the 3D view, "paint" dips and bumps onto your surface. Right click lowers the height of the vertex you are on and left click raises it. Keep digging and raising your ground until you have what looks like a natural pit.
  5. How to Add Water to Your Map in Hammer Editor Picture 15How to Add Water to Your Map in Hammer Editor Picture 15
    Like in the first steps of creating a simple body of water, select the block tool, set the texture to nodraw, and we will select block in the objects menu of the object toolbar. Then click and drag a box onto one of the 2D planes and make sure it is the right size to completely cover the pit on all three planes, then press enter to create the new block.
  6. How to Add Water to Your Map in Hammer Editor Picture 16How to Add Water to Your Map in Hammer Editor Picture 16
    Now select the toggle texture application tool, select a water texture in the face edit sheet window, and right click the top face of your new block to apply the water texture.
  7. How to Add Water to Your Map in Hammer Editor Picture 17How to Add Water to Your Map in Hammer Editor Picture 17
    Select the entity tool and set the object to env_cubemap. Left click on the surface of the water to place your cubemap in the water's surface. Then press alt+enter to open the object properties dialogue and tie the cubemap to the water's surface.
  8. How to Add Water to Your Map in Hammer Editor Picture 18How to Add Water to Your Map in Hammer Editor Picture 18
    If you don't already have one, create an water_lod_control entity by selecting the object section of the object toolbar to water_lod_control and placing it over the water. Remember, you only need one of these in your maps, creating more than one will cause errors.
  9. Now press F9 to compile and run your map and admire your puddle.
4 ★ | 3 Vote