Displacements are brush surfaces that have been converted to a mesh of polygons that can be freely distorted and sculpted into various shapes. Displacements are primarily used to create terrain: hills, valleys, trenches, slopes, etc.
- 1 Benefits
- 2 Limitations
- 3 Other characteristics
- 4 Known issues
- 5 Construction
- 6 Basic displacement creation
- 7 Displacement options
- 8 Sewing displacements
- 9 Subdividing displacements
- 10 Other methods of altering displacement geometry
- 11 Displacement editing shortcuts
- 12 See also
- 13 External links
- They are rendered in batches, making it very cheap: per polygon face actually cheaper than standard brush geometry!
- They can be altered using the Paint Geometry tool to sculpt a wide variety of shapes, well beyond what can be created with brushes.
- An alpha channel for can be painted per-vertex to blend between two textures on the displacement. This can be used to create transitions between dirt and rock, for example.
- Can be automatically populated with detail props.
- They must always be four-sided.
- They must always be static, and never attached to an entity, meaning you cannot set displacements as brush entities, such as func_breakable and func_brush.
- They do not seal the map from leaks.
- A single level is limited to a total of 2032 power 3 displacements.
- There are three levels of resolution, but ultimately the number of polygons is determined by the size of the displacement. Cut ( ) one up if more detail is needed.
- Light is not blocked by the invisible backface.
- A single brush can host as many displacements as it has faces (the brush itself is not compiled).
- Be cautious when using power 4 displacement. Physics colliding with power 4 displacements sometimes throws a fatal error.
Displacements are created by using one of the faces on a brush solid as a base face. Once the displacement surface has been created, the brush face used as the base face is discarded when the map is compiled. Additionally, if a brush solid contains any displacement surfaces, all of the non-displacement sides are discarded when the map is compiled and run in the engine. In other words, once you convert a brush solid to include displacements, the brush solid is no longer a solid object and is removed when you run the map.
The following images illustrate this characteristic:
Basic displacement creation
How to create and paint a displacement surface:
- Create a brush with the Block Tool that will be used as the base for the created displacement surface.
- Click the Texture Application tool to bring up the Face Edit dialog, and select the Displacement tab.
- In the 3D view, left-click on a brush face to select it. -click to add or remove faces from the current selection.
- Click Create in the Displacement tab. Enter a value from 2 to 4 for the displacement density and click OK.
- Select the Paint Geometry tool on the Displacement tab. The Paint Geometry panel will open.
- In the 3D View, Left-click on a displacement to raise a section, and right-click to lower it. Use the Radius slider in the Paint Geometry panel to control the size of the painting sphere.
Use the Displacement Mask button on the Map Operations toolbar to toggle the display and selection of the non-displacement sides of brush.
You can also have more than one displacement surface for each brush, like the image on the left. As long as a brush side has 4 edges, you can make a displacement surface out of it.See Face Edit, Displacements for a description of all the ways you can paint the geometry on a displacement.
The Sew button on the Displacement tab can be used to connect the edges of two or more selected displacement surfaces. To sew two or more displacements, select the displacement faces that should be sewn together and press the Sew button.
You can sew displacement surfaces in any of the following circumstances:
- Any two displacements whose base face brush surfaces share a common edge with coincident endpoints.
- A displacement surface to a non-displacement brush face, if the base face of the two share a common edge with coincident endpoints.
- A displacement surface to another displacement surface where a shared edge is exactly half the width of the other (called a T-junction).
You can sew displacements with different resolution settings — the vertices of the higher resolution displacement will be moved to match the vertices of the lower resolution displacement.
Examples of circumstances where the Sew command can be used:
Surfaces cannot be sewn together if the base faces of the displacements do not share a common edge:
Surfaces also cannot be sewn together if they don't share a common "Elev"ation attribute, which is found along side the Power and Scale attributes.
The Subdivide button on the Displacement tab can be used to smooth two or more selected displacement surfaces in relation to their position. To subdivide two or more displacements, select the displacement faces that should be subdivided and press the Subdivide button. If the subdivision is not successful, you'll see areas where displacement faces appear buggy and out of place. To do: Insert rules for subdividing displacement brushes.
Other methods of altering displacement geometry
Besides the displacement painting tools, some of the standard brush manipulation tools work on displacement surfaces. It works well to control the contours of the displacement with the paint tools, and do larger manipulations with the following tools.
Displacements can be freely moved, scaled, rotated and sheared with the Selection Tool, just like standard brushes. The transformation is done to the base brush face, and the displacement follows.
The Clip Tool can also be used to clip displacement surfaces. This can be used to trim off unneeded sections of the displacement surface, or to divide a displacement into two pieces without changing its shape.
The following example shows how the Clip Tool can be used to trim a displacement surface:
Vertex manipulation (Technique)
The Vertex Tool can also be used to clip displacement surfaces. Vertex editing works well to shift the corners of the displacement to meet important edges, or to raise whole section of terrain without having to paint it by hand when creating hills or elevated surfaces.
There are some important restrictions when vertex editing displacements:
- Vertex editing is done on the base face, not the displacement itself.
- Collapsing or adding vertices is not allowed, and will destroy displacements attached to the base faces.
- The end result of the vertex editing must be a planar surface. Making a non-planar surface will destroy attached displacements.
The following example shows how the Vertex Tool can be used to raise a section of displacements:
Creating holes in displacements
Sometimes you need to create a hole or gap in displacement surfaces for various reasons. See Creating Holes in Displacements for information on how to create holes in displacement geometry.
Blended displacement materials (alpha channel painting)
The Paint Alpha tools allow you to blend between two different textures on a displacement surface by painting the alpha channel. The alpha channel contains data about the transparency of the two textures assigned to the surface. This can be used to create transitions in the texturing, like grass to dirt, sand to rock, etc. To do alpha channel material blending, special blend materials are made specifically for this purpose that contain the necessary shader. Only these materials can be used for blending. If one of the standard (non-blended) materials are used, the Paint Alpha tools will have no visible effect.
To add a blended material to a displacement surface and paint the alpha channel data to blend the textures:
- Choose the Texture Application Tool to open the Face Edit dialog box.
- Left-Click in the 3D View to select a displacement face you wish to add a blend material to.
- Click the Browse button on the Material tab of the Face Edit dialog box.
- When the Texture Browser appears, type
blendinto the filter field at the bottom of the Texture Browser.
- Double-left-click to select one of the blended materials and close the Texture Browser.
- Click the Apply button on the Face Edit dialog to apply the material to the displacement surface.
- Click the Displacement tab on the Face Edit dialog.
- Click the Paint Alpha button on the Displacement tab to open the Paint Alpha tools.
- Type 100 into the Value slider field. Make sure that Raise/Lower is selected under Effect. Lower numbers in the Value field paint the alpha channel data at a slower pace, higher numbers paint the data faster.
- Left-click on one of the vertices of the displacement in the 3D View to add alpha channel data. Right-click on the displacement to remove data.
Displacement editing shortcuts
- Alt+right click
- When the axis in paint geometry is set to face normal, will set the axis to the direction perpendicular to the face you clicked on.
- Ignores the distance setting, allowing sections to be dragged freely.
- Right click
- Reverses the direction of the paint geometry tool.
- Practical Cliffs (interlopers.net)
- Wall Worm Displacement Tools - Creating displacements inside 3ds Max
|Skies and environment maps||Skybox (2D) • Skybox (3D) • HDR Skies • Skybox with Terragen • Skybox with Terragen - Advanced • List of skies|
|Terrain and displacement mapping||Displacements • Holes in displacements • Digital Elevation Models|