This article relates to the game "Dota 2". Click here for more information.
This article relates to the SDK/Workshop Tools for "Dota 2 Workshop Tools". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Tile Editor

From Valve Developer Community
Jump to: navigation, search

English (en)中文 (zh)Translate (Translate)

This section explains the features of Tile Editor in detail. If you just want to learn the basics, go read Tile Editor Basics: Your First Dota Map.

Tile Editor interface

The tile editor tool interface is split into 3 main sections, as pictured below:

Tile editor advanced ui.png

  1. The tile editor mode tool bar. This section of the interface is a tool bar that allows the current tool mode of the tile editor to be selected.
    Note.pngNote:Each of the the modes has an associated hotkey which can be displayed by moving the mouse cursor over the button and holding it there for a few seconds.
  2. Settings for the current tool mode. This section of the interface displays the settings for the currently selected tool mode of the tile editor. Its contents will change to display the settings for each mode, although many modes share common settings.
  3. Current hotkeys. Displays the most important hotkeys for the currently selected tool mode.

Height Brush

Tile editor advanced height.png

Tool mode hotkey: Q

The height brush mode of the tile editor allows the height of the ground within the radius of the brush to be raised and lowered. There are a few modifiers that change exactly how the brush affects ground height, these are described below.

Height brush mouse operations

  • Left click and drag LMB : Raise the height of the ground within the brush.
  • Control plus left click and drag Ctrl+LMB : Lower the height of the ground within the brush.
  • Shift plus left click and drag Shift+LMB : Extend the height under the center of the brush.
  • X plus left click and drag X+LMB : Add to the height of the ground within the brush.
  • C plus left click and drag C+LMB : Change the tile set assignment of the tiles within the brush to be the currently selected tile set. (See Selecting the current current tile set below)


Height brush key commands

  • G / B Raise or lower the ground within the brush a single step.
  • F / V Cycle to the next or previous variation of the single tile currently under the cursor (lightly highlighted in green).
  • N Cycle the currently active tile set.


Changing the brush radius

Tile editor advanced brush radius.png

You can change the radius of the brush by using middle mouse drag MMB or by using the slider in the brush settings interface.

Note.pngNote:The radius for each of the brush modes can be adjusted in the same way, but each mode stores its own radius setting.


Selecting the current current tile set

Tile editor advanced current tileset.png

Several of the tile editor tool modes, including the height brush, use the currently selected tile set. This setting is shared across all the tool modes. The current tile set can be selected from any of the active tile sets using the current tile set drop down in the interface pictured above. See the Managing Tile Sets selection below for information on how to add and remove tile sets from the available list of tile sets.

Note.pngNote:The hotkey N can be used to quickly cycle the active tile set

Once a tile set is selected, any of the height brush operations will change the tiles within the brush to be the currently selected tile set. The Assign current tile set operation C+LMB can be used to change the tile set assigned to tiles within the brush without modifying the ground height.

Raise Height vs. Add Height

Most of the height brush operations are straightforward, but there is a subtle distinction between Raise Height (LMB) and Add Height (X+LMB). Raise Height will increase the height of the ground directly under the cursor at the start of the brush stroke by one step and then set the height of all other ground positions within the brush to the same height regardless of their initial heights. By contrast, Add Height raises the height of each ground position within the brush by one unit from from that position's original height at the start of the brush stroke. As a result Raise Height will tend to create plateaus with large elevated flat areas, while Add height will tend to create hills with few flat areas.


Tile grid height

The tile editor editor will allow the height of the ground to be raised 15 steps above or below the initial ground plane height. Once this limit is reached operations which modify the ground height will no longer apply to any ground points which have reached the maximum or minimum height. Each height step is of the ground is equivalent to 128 game units.

Note.pngNote:The ground height will be automatically adjusted during map compile so that the ground level never goes below zero in game. This is due to a restriction of the way fog of war is handled. See the Fog of War page for more information about how the fog of war interacts with the ground height.


Water Brush

Tile editor advanced water mode.png


Tool mode hotkey: E


The water brush tool mode allows water to be placed in a map using the same brush interface that is used to paint ground height. Water is primarly a visual element, other than modifying the height of the ground it has no significant impact in game.

Water brush mouse operations

  • Left click and drag LMB: Paint water within the radius of the brush.
  • Control plus left click and drag Ctrl+LMB: Erase any water within the radius of the brush.


Water brush key commands

  • G / B Raise or lower the ground within the brush a single step.

Water and ground height

Using the water brush will result in modifying the ground height such that the ground under the water is flat and so that the water is surrounded by a border of ground tiles that are exactly one step higher than the water. This means that water cannot directly touch a tile with a height change greater than a single step (128 units).

Tip.pngTip:A single map may have water at multiple levels, but each visible level of water requires its own reflection rendering. The more levels of water are visible at once, the slower the map will run. For best in game performance a map should be constructed such that there is only one level of water visible at a time in game.


Water and trees

Trees may be placed in water, however using the water brush will remove trees automatically as this is generally the desired result. Trees may be placed in water after it is created by the water brush.


Path Brush

Tile editor advanced path mode.png


Tool hotkey: R


The path brush allows painting path over areas of the map. A path serves two purposes, it can be used as visual element indicating to the player expected movement direction and it ensures that it is possible for the player to traverse the ground where the path is placed. In order to ensure that the path can be navigated in game it will modify the ground height, add ramps and remove trees. By doing this the path ensures there will be nothing blocking the player's movement. Note however, path is not required for player movement. See the Grid navigation page for more information on how navigable areas are determined.

Path brush mouse operations

  • Left click and drag LMB: Paint path within the radius of the brush. This will add ramps, remove trees and modify the ground height as needed.
  • Control plus left click and drag Ctrl+LMB: Erase any path within the radius of the brush. This will also result in removing ramps and any trees which were removed due to the path will be re-added.


Path connectivity

Unlike the height and water which modify tile corners, the path brush modifies tile edges, marking each tile edge as being on a path or not. By default when using the path brush, blue lines are drawn connecting the any two edges of a tile which are marked as being on a path. This is useful in when trying to distinguish between two parallel paths and a single wider path.


Tree Brush

Tile editor advanced trees mode.png


Tool hotkey: T


The tree brush tool mode allow trees to be added to the map at the valid tree locations within the radius of the brush. The type of tree to be added can be selected from the set of tree types provided by the currently active tile set and the density of trees placed can be controlled as well.


Tree brush mouse operations

  • Left click and drag LMB: Paint the currently active tree type. Note that trees are added at the smallest size and will increase in size as the brush passes over them multiple times.
  • Control plus left click and drag Ctrl+LMB: Erase the trees within the brush. All existing trees within the brush will be removed regardless of type or size.
  • Shift plus left click and drag Shift+LMB: Paint trees incrementally. This operation will only add tress at their smallest size or increase the height of existing trees by a single step.
  • Ctrl shift plus left click and drag Ctrl+ Shift+LMB: Erase trees incrementally. This operation will reduce the size of any existing trees by one step, or remove trees that are already at the smallest size.
  • G plus left click and drag G+LMB: Increase the height of any existing trees by a single step. This operation will not add any new trees and will only increase the height of an existing tree once within a single brush stroke.
  • C plus left click and drag C+LMB: Change the type of trees within the radius the brush to be the currently selected tree type. This operation will not add any new trees, it will simply replace existing trees with the new tree type.


Changing the tree brush density

Tile editor advanced density.png

The density of trees placed by the brush can be modified by using the density slider in the interface or by holding control and using middle mouse drag MMB. A lower density will result in fewer trees being added within the radius of the brush, while a higher density will result in more trees being added within the radius of the brush.


Changing the tree type

Tile editor advanced trees type.png

The type of trees placed by the tree brush can be picked from any of the tree types provided by the currently selected tile set. Simply select the tree type from the trees drop down in the settings interface for the tree brush.

Note.pngNote:The type of tree being placed is dependent completely on the setting in the interface, not the tile set assigned to the ground where it is being placed. This allows mixing trees from different tile sets.


Valid tree locations

Tree placement is restricted to a 64 unit grid. Only one tree may occupy each location and a location is only valid for tree placement if it is not on a slope. Additionally a tree may not be placed on a location which already has a tree on a neighboring location. These restrictions are due to the fact that trees are important to gameplay and affect both navigation and fog of war. By placing trees using the tile editor you are guaranteed that each is placed in a valid location.



Plant Brush

Tile editor advanced plants.png


Tool hotkey: Y


The plant brush tool mode allows placing plants and other details in much the same way as the tree brush. Like trees plants are restricted to a 64 unit grid with only one plant allowed to occupy each location. Like trees plants cannot be placed on slopes, however unlike trees there are no neighbor restrictions on plants. Unlike trees plants are purely a visual detail and do not affect on gameplay.

Plant brush mouse operations

  • Left click and drag LMB: Paint plants within the radius of the brush.
  • Control click and drag Ctrl+LMB: Remove the all plants within the radius of the brush.


Changing the tree brush density

Tile editor advanced density.png

Like trees, the density of plants placed by the brush can be modified by using the density slider in the interface or by holding control and using middle mouse drag MMB. A lower density will result in fewer plants being added within the radius of the brush, while a higher density will result in more plants being added within the radius of the brush.


Changing the plant type

Tile editor advanced plant type.png

The type of plant which that is placed can be modified by selecting the plant type drop down from the settings interface for the plant brush. By default the plant type will be set to random, meaning that any of the available types can be placed within a single brush stroke. It can be changed to a specific type so that only plants of the selected type will be placed. Like the tree types, the active tile set determines what the available plant types are, but in general the standard tile sets simply provide sparse, moderate and thick plant types, which essentially control the size of the plants.


Blend Painting Brush

Tile editor advanced blend paint.png


Tool hotkey: O

The blend painting brush performs modification of texture blending directly within the tile editor. This allows texture blends on tiles to be modified without having to first collapse the tiles.

Tile editor advanced blend pvp.png
A section of the Dota 2 map with and without blend painting.


Painting blend layers

There are four blend layers which can be painted with the blend paint brush. The appearance of each layer is dependent on the tile set, but the layers are always ordered from 1 to 4 such that layer 1 is the bottom layer and layer 4 is the top layer.
Tile editor advanced blend layers.png

To paint a layer select the corresponding button from the UI.

Once a layer is selected, left click and drag LMB to paint the selected layer within the radius of the brush.
Tile editor advanced blend paint layer.png

Hold control and left click and drag Ctrl+LMB to erase the current layer, revealing the layers below it.
Tile editor advanced blend erase layer.png

Brush settings

The brush settings can be used to control exactly how the brush modifies the opacity of a layer.
Tile editor advanced blend brush settings.png

  • Radius: The size of the brush. In addition to using the slider in the UI, this can be adjusted by performing a middle mouse drag. MMB
  • Pressure: Controls how quickly the brush modifies the opacity of a layer. This can be adjusted by holding control and performing a middle mouse drag. ctrl+MMB
  • Stroke Opacity: This is the maximum opacity change that can be applied in single brush stroke. Once the stroke opacity has been reached moving the brush over an area will not change the opacity of the layer further until the mouse button is released and pressed again.
  • Hardness: This controls the falloff of brush. A hardness of 0 means the only the very center of the brush will be applied at full strength, while a hardness of 100 means the entire area of the brush will apply at full strength.



Painting layer transitions

Using the Transition mode, the transition between two layers can be modified to be either sharp or soft, although the exact result is dependent on each layer of the material.
Tile editor advanced blend transition.png

  • Left click and drag LMB to make the transition between two layers softer.
  • Hold control and left click and drag ctrl+LMB to make a transition sharper.



Note.pngNote:The transition paint mode can also be accessed by holding shift when painting any of the blend layers.
  • Shift+LMB Soften transition.
  • Ctrl+ Shift+LMB Sharpen transition.



Smoothing blends

Using the Smooth mode, blend painting authored using the brush for any layer can be smoothed to make blend more even and gradual.
This is different than making the transition soft in that it actually modifies the painted opacity of the layer instead of just modifying how the opacity is interpreted.
Tile editor advanced blend smooth.png

Left click and drag LMB to smooth the blends within the radius of the brush.



Erasing all blending

Using the Erase All mode, all blend painting can be completely erased to return the surface to its original unpainted state.
Tile editor advanced blend erase.png

Left click and drag LMB to erase all blends in the area within the brush.



Painting color tint

Using the Color mode, a color tint can be applied on top of any existing blends. The color to be applied can be selected by clicking on the color swatch.
Tile editor advanced blend color.png

Left click and drag LMB to paint the selected color tint.

Tile editor advanced blend color painted.png



Material Sets and Transitions

Material sets are groups of materials that can replace the default materials on a tile. Each tile set may have a number of different material sets which allow the original materials to be be replaced without requiring a whole new tile set.

Applying Material Sets

To apply a material set first select the material set from the drop down in the ui.
Tile editor advanced material sets selection.png

Once the material set is selected you can assign it to tiles using the blend paint brush modifier C+LMB This will cause the selected material set to be assigned to the tile within the radius of the brush.
Tile editor advanced material sets application.png


After a material set has been applied to tiles you can paint any of the four blend layers.
Tile editor advanced material sets painting.png

Note.pngNote:Some blend layers may match other material sets while others may not. The matching layers can be used to hide the edges.




Transition Material Sets

Transition materials set are a special type of material set which may be used to blend between two other material sets.

To use a transition material set, first select it from the material set drop down:
Tile editor advanced material sets select transition.png

Just as with a normal material set, use the brush while holding the apply material set modifier C+LMB to apply the transition material set.
Tile editor advanced material sets apply transition.png

Transition materials only support blending layers 1 and 3 because they contain layers 1 and 3 from the two materials they transition between.
However, in addition to layers 1 and 3, transition material sets support the 'Material Transition' layer. This layer controls the blending between the two pairs of layers.

To paint the transition select the 'Material Transition' button from the ui.
Tile editor advanced material sets transition button.png

Then simply use the brush to apply the transition by holding LMB and dragging or holding Ctrl+LMB to erase the transition blend.
Tile editor advanced material sets transition blend.png

Object Placement

Tile editor advanced objects.png


Tool hotkey: U


The object placement tool mode can be used to add individual detail objects to the map as well as individual trees and plants. In addition to placing detail objects the object placement tool can also be used to make small tweaks to existing objects such as rotating and re-positioning.

Object position grid

Unlike the brush tools which work on an area, the object placement tool works on a single object at a time. The object placement tool interacts with the object position grid, which is the grid of locations 64 units apart where objects can be placed. When the object placement tool is active it will show the object location grid points in an area around the cursor. The grid point nearest the cursor will be highlighted in green, this is the active grid point to which all operations and commands will apply.


Object placement mouse operations

  • Left mouse click LMB: Place an object of the currently selected type at the currently highlighted location.
  • Control plus left mouse click LMB: Remove the object from the currently highlighted location.
  • Left click and drag LMB: Click on a location with and object and drag it to a new location.
  • Shift plus left mouse click and drag Shift+LMB: Click on an object and drag a clone of the object to a new location, leaving the original copy of the object where it was.
  • X plus left mouse dragX+LMB: Rotate the object at the currently active grid location.

Placing objects

The primary function of the object placement tool is to place detail objects. This is accomplished by simply moving the mouse cursor over a free object location grid point (free points are white), and clicking on it with the left mouse button. This will place an instance of the currently selected object type on the active grid point.

Selecting the object type

The object placement tool can place three types of objects: props, trees, and plants. To select which type of object that will be placed simply select the type from the object type dropdown in the tile editor interface.

Tile editor advanced object type.png


Once a general object type has been selected, a specific sub-type of that object can also be selected from the interface.

Tile editor advanced object subtype.png

Each object sub-type may still have multiple variations, when placed one of these variations will be selected randomly.


Changing the variation of an object

The specific variation of any object can be modified by mousing over the object location and pressing F or V.

Note.pngNote:Some objects may have only one variation, in which case the object will not be modified.

Moving and cloning objects

  • To move an existing object, move the cursor over the grid point location where the object is placed (the object will hightlight in green), then left click and drag LMB to move it to a new location.
  • To clone an object, move the cursor over the grid point location where the object is placed, then hold shift and left click drag Shift+LMB. This will clone the object and move the copy to a new location, leaving the original object in its initial position.

Rotating objects

To rotate an object, move the cursor over the grid point location where the object is placed, then hold x and left click and drag X+LMB or middle click and drag MMB. This will rotate the object. The rotation will obey the rotation snap settings, these can be set using the snapping toolbar in the lower right hand corner of the Hammer window.

Tile editor advanced rotation snapping.png

Removing objects

To remove an existing object simply hold control and left click Ctrl+LMB on the grid point corresponding to the object, or with the mouse cursor over the grid point for the object press Del.

Note.pngNote:While holding control any location which has an object will turn red to indicate that it can be removed.

Editing trees and plants

In addition to editing props, the object placement tool can be used to edit trees and plants, even if they were placed with the tree or plant brush tool modes.

  • To add a single tree or plant simply set the object type to trees or plants and then select the specific tree or plant type you want.
  • Tree placement still follows the same rules as it does when placing trees using the tree brush. Placing trees directly next to each other is not allowed, and trees cannot be placed on paths.
Note.pngNote:Left clicking on a tree has the special behavior of modifying the height of the tree
  • Plant placement using the object placement tool differs from placement using the brush in one respect. The plant brush will not place plants on a path but the object placement tool will allow plants placed on a path. This is done to allow the plant brush to be used around the edges of paths quickly with no chance of the plants completely hiding the path, however since plants don't block navigation, they can actually be placed on paths deliberately using the object placement tool.


Item selection

Tile editor advanced selection.png


Tool mode hotkey: i


The item selection tool allows selection of both tiles and objects simultaneously. It then supports several operations that work on the selected set of items.

Selecting items

There are a few method of selecting items:

  • Left click LMB on an item under the cursor. This will select the individual item which is under the mouse cursor.
  • Left click and drag LMB to select multiple items under the cursor. This will select the item under the cursor and will continue to select each of the items which the cursor passes over.
  • Middle click and drag MMB to draw out a lasso, selecting all of the objects and tiles that are completely inside the shape.
  • Hold X and middle click and drag X+MMB to draw a box and select everything inside of it.
  • Press esc to clear the selection.


Selection modifiers

All selection operations can be modified in the same way:

  • Hold Ctrl to remove objects from the selection.
  • Hold Shift to add objects to the current selection instead of replacing the selection.


Selection filtering

Tile editor advanced selection filter.png

By default the selection tool mode will select both tiles and objects. The selection filter in the selection tool mode settings interface can be used to disable selection of either, allowing only the other to be selected. This can be useful in making complex selections.


Selection commands

  • Next Variation F: Pick the next variation of the selected tiles and objects.
  • Next Variation V: Pick the previous variation of the selected tiles and objects.
Note.pngNote:The going to the next variation and then the previous variation may not yield the exact same result because the detail components may still differ.
  • Random Variation C: Pick a random variation of each of the selected tiles and objects.
  • Next Tile Set Ctrl+C: Swap the tile set of the currently selected objects and tiles to the next tile set in the active tile sets.
  • Previous Tile Set Ctrl+ Shift+D: Swap the tile set of the currently selected objects and tiles to the previous tile set in the active tile sets.
  • Assign Current Tile Set Shift+C: Assign the currently selected tile set to the selected tiles and objects.
  • Raise Tiles G: Raise the currently selected tiles by one step.
  • Lower Tiles B: Lower the currently selected tiles by one step.


Collapse

Tile editor advanced collapse.png

Collapsing items creates an editable copy of the selected items which can be modified individually outside of the tile editor. This is useful if custom modifications are needed.

Note.pngNote:This operation will exit the tile editor and select the resulting objects.


Detail components

Tiles and objects are frequently composed of several detail components. When a tile or object is selected a gray box will drawn at the origin of each of its detail components. Moving the mouse cursor over one of these boxes will change the green selection highlight to be only on the specific detail component.


When a detail component is highlighted it may be modified with using the following operations:

  • F Cycle to the next variation of the detail.
  • V Cycle to the previous variation of the detail.
  • C Pick a random variation of the detail.
  • Del Clear the highlighted detail component. Note that the detail component selection box remains, allowing the detail to be brought back by pressing any of the above keys to cycle the variation.


Copy and paste

Any selection of tiles and objects can be copied and pasted while in the item selection tool mode.

  • Make a selection of tiles and press Ctrl+C to copy them.
  • Press Ctrl+V to paste the tiles at the location under the cursor.
  • To preview the copied selection before pasting it press Ctrl+ Shift+V. This will start a temporary preview mode which will display the selection on the clipboard and where it will be placed based on the current cursor location.
    • To place an instance of the selection on the clipboard simply press the left mouse button LMB
    • To exit the paste preview mode press esc
Pressing Ctrl+ Shift+V activates a preview mode showing the selection on the clipboard before actually pasting it to the selected location.


Enable Disable

Tile editor advanced enable disable.png


Tool mode hotkey: h


The enable disable tool mode allows tiles to be disabled or re-enabled. Disabling a tile is a way of hiding a tile in a non-destructive mangger. This can be useful when authoring custom geometry and embedding it in the tile grid.

Note.pngNote:Only tiles can be disabled, objects (such as trees) will be hidden if they are on a disabled tile. Objects which are on the corners or edges of tiles will only be hidden once all of the tiles they touch are disabled.

Disabling tiles

To disable a tile simply enter the enable disable tool mode and click on the tile. The tile will immediately gray out. When switching back to any of the other modes of the tile editor the disabled tile will be hidden.

Re-enabling tiles

Any disabled tile can by re-enabled by entering the enable disable tool mode. When in this mode all disabled tiles which are normally hidden will be visible but will draw grayed out. Clicking on any grayed out tile will re-enable it, causing it to draw normally.



Managing Tile Sets

Tile editor advanced slect tile sets.png


A tile grid may reference up to 4 different tile set maps. These are the tile sets which can be selected as the current tile set. To change, add or remove which tile sets are being used simply click the Select Tile Sets button in the tile editor interface.


This will bring up the properties dialog for the tile grid, which lists the four tile set map files the tile grid is using. To change any of the tile sets click on the magnifying glass icon to bring up an asset browser which will allow you to pick a new tile set map. Picking a new tile set map to replace an existing map will automatically replace all of the tiles currently in use with the ones from the new map.

Tile editor advanced slect tile grid properties.png


Tip.pngTip:To remove a reference to a tile set that is not in use, clear the name entry for that tile set. Removing un-used tile sets will actually decrease the amount of time it takes to load the map in Hammer as each referenced tile set is loaded completely regardless of how many tiles are using it.


Next: New Tilesets