Displacements

What is now called Anvil was originally called the Wall Worm Displacement Tool. Since displacements are now just one aspect of the toolset, it has been re-named Anvil. This page details the displacement aspect.

Anvil Displacements Tab

Please note that the UI in the videos may not reflect the current UI and there are a few comments that are no longer valid. For example, some videos mention that you cannot copy displacements--which is no longer true.

Key Features

  • Build terrain inside 3ds Max
  • Use standard 3ds Max design tools and modifiers to sculpt terrain
  • Sew displacements that do not line up
  • Paint blend texture alpha inside Max

Using WW Displacements

Before you use WW Displacements, please make sure to read this entire page. Please make sure to share feedback when you use the tool to help hasten development and enhance the tool.

General Workflow

The general workflow of Wall Worm Displacements is this:

  1. Add displacement objects into the scene with the UI with one of the various methods available. The most Hammer-like way is to use the Faces to Displacements button.
  2. Move the displacement object to desired location (Make sure to have grid snapping turned on. It is recommended that you move the underlying brush face with Move Mode rather than the displacement.)
  3. Click Sculpt to start sculpting the displacements as a single sculpt mesh. If none or one displacement are selected, all displacements in the scene that aren't part of a sculpt mesh are added into a sculpt mesh. If two or more displacements are selected, then only the selected displacements get added to the sculpt mesh.
  4. Alternatively go to Texture Mode to paint the Alpha for blending the displacement materials.
  5. Repeat previous two steps interchangeably as you fine-tune the terrain
  6. Commit changes in the sculpt mesh by clicking the commit button in the modify tab.

You may want to review this document on Understanding Wall Worm Displacements.

Hints, Tips and Limitations

This section includes important information regarding the usage of the tool.

Do not change the Displacement Topology

You should not do anything that changes the topology of the displacement. If you are unfamiliar with 3ds Max then that statement may seem fairly odd since the displacement is for making terrains... and you are changing the shape and "topology" as defined by common terminology. However, in 3ds Max, topology is defined as the positions, parameters, etc of specific faces and vertices which are referred to by specific numbers... topological changes will change the ordering/numbering of these vertices and faces.

  • Earlier versions of Displacements allowed you to Quadrify the displacement. This is no longer possible without invalidating the sculpt mesh or displacement. Simply put, do not use the Graphite Toolbar function to Quadrify anymore.
  • While the geometry of the displacement can be modified via modifiers and the poly sculpting, avoid actions such as Attach, Detach, etc.
  • Modifiers you can use include Displace, Relax, Poly Select, Bend, Taper, FFD, etc. These kinds of modifiers do not change the number of vertices in the mesh and are allowed.
  • Do not add/delete any vertices or faces to the displacements.
  • Do not use Turbosmooth, MeshSmooth, MultiRes, Optimize, etc.
  • Generally speaking, WW will not let you change the topology but if you manage to do that... you will mess up the displacement!
The actual in-game texture is derived from the name of the material

The actual texture that will appear in Hammer and in-game is derived from the name of the material applied to the displacement. Changing the bitmaps that appear in the Max viewport do not change the textures used in-game unless you happen to change the name of the material (in the material editor).

  • The current default texture is named nature/blendcliffgrass001a... which is why that texture appears Hammer after exporting.
  • The path of the material you want to use must be used in the name--which is why the default material name is prefixed with "nature/".
Sculpt Mesh Power cannot change after created

The power (resolution) of a sculpt mesh cannot be changed. If you need to change the power, you should commit your sculpt mesh and revert it to the displacement pieces, then change the individual pieces to the desired power. Changing the power may create gaps between displacements--remember to sew after changing power.

The Sew function only works as intended between displacements of the same power.

You can sew displacements that have different powers... but the results are not what are intended... leaving some vertices from the higher-power mesh unmoved.

  • The sew function only works on the currently selected displacements.
  • Sew will only work if the base geometry of a displacement are aligned at the edge vertices--which is not always easy to do once you've started sculpting. You can move an individual displacement's brush face by clicking it's Move Mode button... or enter Move Mode for all brushes by clicking the Move Mode in Anvil.

The WW Displacement UI

This section outlines the purpose of each item in the WW Displacement Tool UI.

Type

This menu will tell the tool what kind of displacement you are making. The default is Ground. I may add more preset displacements in the future.

  • Ground is good for ground. (In beta versions, it was called "Planar")
  • Hill is good for mountains, hills, cliffs and terrain that need to be sculpted in three dimensions above the ground. (In beta versions, this was called "No Bottom".)
  • Open Hill has three displacements... a top and two sides opposite of each other.
  • Ring has four displacements that go around all sides of a cube.
  • Corner has two displacements that meet each other like the outside corner of a building.
  • Bulge has three displacements that are like the Open Hill rotated 90 degrees or the Ring with one displacement removed.
  • Cube is added just as an option, but it is probably unnecessary to use six-sided displacements. (This was called "Cubic" in the beta versions.)
Power

Power controls the resolution of the mesh. The default is 2, which creates displacements with the most detail.

Length, Width and Height

These settings control the dimensions of the displacement. For conveneience, you should only make displacements that are of the listed dimensions (and this UI only gives you those options anyway). The default is 512.

Rows

This will create multiple rows of displacements.

  • The number of displacements created is Rows X Columns.
Columns

This will create multiple columns of displacements.

  • The number of displacements created is Rows X Columns.
Default Material

Click here to browse for the default material to apply to new displacements. If you do not choose one, the tool will automatically add a material that maps to the Source Material "nature/blendcliffgrass001a" .

  • The default material is now saved between sessions. The default material is always saved in a Material Library called $materiallibraries\WallWormDisplacementMaterials.mat . The last material in that library is the default displacement material. You can manually edit that library as you desire.
Create Displacement

Click this button to add the displacement objects to the scene. The power, size, rows and columns will control the output of these displacements.

Select

When pressed, all displacements in the current selection will become the only objects selected (non displacements get removed from the current selection). If no objects are selected, then all displacements in the scene are selected.

Hide

Hides all selected displacements. If no displacements are selected, all displacements get hidden.

Show

Show all hidden displacements.

Edit Displacements

Sculpt

This button will allow you to edit the shape of your displacements more easily by converting the selected displacements into a Sculpt Mesh. It will hide your actual displacements and create a sculpting object that you can sculpt with the normal Poly sculpting tools like Push/Pull, Relax, Noise, etc.

  • Checking the Sculpt button lets you sculpt the displacements... but the action is not applied to your displacements until click the Commit button in the displacement's modify tab.
  • If you don't like the changes to your displacements in a sculpt mesh, simply delete the sculpting mesh... you will exit Sculpt Mode and the original displacements will return as long as you haven't committed the changes.
Paint Alpha

This button applies a Vertex Paint Modifier and sets it to paint on the Alpha channel of the vertices, allowing you to paint the blend alpha for the blend material..

  • The viewport will only display textures properly if you are using an appropriate Direct X shader. The shader is called "blend_dxsas.fx" (pre Max 2014) and "blend_dxsas11_nitrous.fx" (Max 2014+). It is included with WW Displacements.
  • The texture on your displacement is derived from the name of the material applied to it when exported to VMF.
Display Walkable

When this checkbutton is on, the selected displacement(s) will display unwalkable faces on the displacement with a bright green overlay.

One important thing to understand is that the Display Walkable overlay works best with Triangulated displacements. You can triangulate a displacement or sculpt mesh when selected with the Triangulate button in the modify tab of the command panel. (Displacements created in newer versions default to Quads for easier modelling. You can revert to quadrify with the Qiadrify button in the modify tab.)

Sew

This function is similar to the Sew command in Hammer. It will align vertices between displacements that are aligned next to each other. It does not work on the sculpt mesh in Edit Mode.

  • Sew only works on the currently selected displacements.
  • Desired results currently only come from sewing displacements of the same Power.
  • Sew only works with displacements that are aligned perfectly on the grid.
  • Sew only works with displacements--not with sculpt meshes.
Planar Mapping

This function will apply a Planar UVW map to all the selected displacements. NOTE: for displacements, never change the mapping type to anything other than Planar!

Placement

Move Mode

Move Mode will hide the sculpted displacements and instead show the underlying "brush" face. This lets you move the displacements more easily using various snapping types.

Lock

When you press the Lock button, all selected displacements will get locked to their current location. This will keep you from accidentally moving them in the viewport.

Unlock

When pressed, all selected displacements that have been locked will get unlocked.

Displacement Flags

This rollout will let you assign flags to your displacement. The options you can set are:

  • No Phys
  • No Hull Collision
  • No Ray Collision

You can prefill the checkboxes with the flags in a displacement by selecting a single displacement and hitting the Get button.

Clicking the Set Flags button will set the flags from the UI on all selected displacements.

These flags are now available in the command panel modify tab, including lightmap scale and smoothing group.

Latest Articles

Displacements Fail to Export

Posted on Feb 15, 2016 | Last Updated Feb 15, 2016

Some tips on troubleshooting displacements failing to export from Max into Source.

Read More

displacements, troubleshooting, missing, fail

Displacement edge abutting other edges

Posted on Jan 23, 2016 | Last Updated Jan 23, 2016

Help understanding the VBSP compile warning about displacement edge abutting other edges.

Read More

displacement, edge, abutting, other, edges, compile

Displacement Alpha Blending

Posted on Dec 29, 2015 | Last Updated Dec 29, 2015

Information on displacement alpha blending and the shaders you can use to visualize the blending.

Read More

worldvertextransition, alpha blending, blend material, directx shader, 3ds max, wallworm, anvil

Understanding Wall Worm Displacements

Posted on May 31, 2013 | Last Updated May 19, 2016

Overview on working with displacements in 3ds Max for the Source Game Engine.

Read More

displacements, sculpt mesh, brush

Displacement Texture Scale Sometimes Incorrect

Understanding Displacement Blend Texture Scale
Posted on Oct 11, 2012 | Last Updated Oct 11, 2012

This page explains one cause for displacement materials to be scaled incorrectly in Source as well as the solution. You should use bitmaps of equal dimensions in both materials controlling the Blend material.

Read More

displacement, texture, incorrect, scale, problem, fix, blend, worldvertextransition

Exporting a Level from 3ds Max into Source

Brush Geometry, 3D Skybox, 2D Sky, Animated Textures
Posted on Oct 8, 2012 | Last Updated Feb 28, 2015

Video tutorial and sample file on exporting a 3ds Max scene into a Source VMF file with Wall Worm.

Read More

vmf, animated texture, video turorial, sample file, download

Lightmap Scale

Posted on May 15, 2012 | Last Updated May 15, 2012

This article details the process of setting lightmap scale on objects, displacements and faces with Wall Worm Anvil's lightmap tools.

Read More

lightmaps, lightmap, scale, lighting, shadows

Recovering a Displacement Mesh

Posted on Apr 30, 2012 | Last Updated May 31, 2013

This page explains how to recover your displacements from a Sculpt Mesh that was never committed.

Read More