Tile Editor

From Valve Developer Community
< Ru
Jump to: navigation, search
English (en)Русский (ru)Translate (Translate)

В этом разделе описаны все параметры инструмента "Tile Editor". Если вы хотите узнать только основы, читайте Основы "Tile Editor": Ваша первая карта(en).

Contents

Интерфейс Tile Editor

Интерфейс разделен на 3 основных раздела, как показано ниже:

Tile editor advanced ui.png

  1. Плитка инструментов редактора. В этом разделе интерфейса является панель инструментов.
    Note.pngПримечание:Каждый инструмент имеет горячую клавишу. Если подвести курсор к любому инструменту,то высветится клавиша(или сочетание клавиш) для быстрого вызова данного инструмента.
  2. Параметры для текущего режима инструмента. Этот раздел интерфейса отображает параметры выбранного в данный момент инструмента редактора. Его содержание изменяется, чтобы отобразить настройки для каждого режима, хотя многие режимы имеют общие параметры.
  3. Текущие горячие клавиши. Отображает наиболее важные горячие клавиши для выбранного инструмента.

Редактор высоты ландшафта (Paint terrain)

Tile editor advanced height.png

Горячая клавиша: Q

Данный инструмент позволяет регулировать высоту ландшафта на карте. Он имеет несколько модификаций, которые описаны ниже.

Операции связанные с ландшафтом

  • Зажимаем левую кнопку мышиLMB и перетаскиваем по ландшафту. Изменит высоту на 1 уровень вверх(всего можно поднять 15 уровней высоты).
  • Зажав сочетание клавиш Ctrl+LMB и перетаскиваем мышь по ландшафту. Изменит высоту на 1 уровень вниз(т. е. углубление)
  • Зажав сочетание клавиш Shift+LMB и перетаскиваем мышь по ландшафту. Продолжит ландшафт на текущем уровне высоты.
  • Сочетание клавиш X+LMB добавит высоту ландшафта в пределах области кисти.
  • Сочетание клавиш C+LMB изменит стиль ландшафта выбранный в параметре "Current Title Set". (Смотрите Выбор текущего набора ниже )

Команды инструмента "Paint terrain"

  • G / B Поднять и опустить высоту в пределах радиуса кисти.
  • F / V Меняет предыдущий и следующий вариант края ландшафта в пределах кисти (слегка выделено зеленым).
  • N Меняет параметр "current tile set".


Изменение радиуса кисти

Tile editor advanced brush radius.png

Зажав MMB перетаскивая мышь вправо и влево, тем самым изменяете радиус кисти.

Note.pngПримечание:Для каждого из режимов вы таким же образом можете изменять радиус кисти, но каждый режим хранит свои настройки.


Выбор набора стиля ландшафта

Tile editor advanced current tileset.png

Этот параметр является общим для все инструментов. Смотрите нижеУправление шаблонами карт.

Note.pngПримечание:Горячая клавишаN для быстрой смены шаблона карт.

Сравнение параметров "Поднять высоту" и "добавить высоту)

Большинство операций с ландшафтом одинаковые, но есть разница между параметрами Поднять высоту (LMB) и Добавить высоту (X+LMB). Параметр Поднять высоту будет поднимать грунт в начале мазка на 1 уровень, затем будет поднимать высоту в других местах независимо от их первоначальной высоты . Но параметр Добавить высоту поднимает грунт на 1 уровень вместе с другим ландшафтом в области кисти.


Параметр сетки(Grid)

Максимально поднять ландшафт можно на 15 уровней выше или ниже от первоначального.При достижении максимальной высоты или глубины ландшафта редактор автоматически не будет применять последующие слои. Каждый слой это 128 игровых единиц.

Note.pngПримечание:Грунт будет автоматически отрегулирован в процессе компиляции карты так, чтобы уровень ландшафта не опускался нижу нуля в игре. Это обусловлено ограничением для создания Тумана войны . Смотрите статью Туман войны(en) для ознакомления о том, как туман войны взаимодействует с ландшафтом.

Инструмент Water Brush

Tile editor advanced water mode.png


Горячая клавиша: E


Инструмент для добавления воды на карту. Это такой же инструмент, как ландшафт. Вода - это просто визуальный эффект, который не сильно влияет на саму игру.

Операции инструмента

  • LMB Зажав ЛКМ вы добавите на слой ландшафта воду.
  • Сочетание клавиш Ctrl+LMB уберет воду в пределах кисти.

Вода на возвышенyостях

Воду можно создавать на возвышенностях (пример: озеро на горе и т.д.).

Tip.pngСовет:На одной карте вода может быть размещена на разных уровнях ландшафта. Чем больше уровней будет видно сразу, тем больше будет нагрузка на ПК. Для лучшей производительности карта должна быть построена так, чтобы только 1 уровень воды был виден на экране.


Вода и деревья

Напрямую деревья в воде нельзя создавать, они автоматически удалятся. А вот если начинать создавать деревья с ландшафта и перетаскивать кисть по воде, то деревья создадутся в воде.

Инструмент Путь(Path)

Tile editor advanced path mode.png


Горячая клавиша: R


Инструмент Path в основном служит для двух целей

  1. Обозначить игроку местность, по которой он гарантированно пройдет без каких либо препятствий
  2. Создает подъемы или спуски(лестницы) для преодоления уровней ландшафта

Но не обязательно использовать Path, чтобы обозначить путь для игрока. Ведь герой может пройти и по простому ландшафту. Смотрите статью Навигационная сетка(en).


Операции инструмента

  • LMB Красит территорию(если на пути есть деревья, то удалит), добавляет лестницы(изменит ландшафт по мере необходимости).
  • Сочетание клавиш Ctrl+LMB Сотрет окрас пути, удалит лестницы(если на пути были деревья, то восстановит).


Примеры Path

Путь маркируется синей линией, при близком размещении двух путей они соединяются(для того, чтобы различать один широкий путь, от двух параллельных)

Инструмент Tree Brush

Tile editor advanced trees mode.png


Горячая клавиша: T


Инструмент Tree Brush позволяет добавить деревья в свободное место на карте. Под свободным местом в кисте обозначены зеленые точки, а красные указывают что тут нельзя поставить деревья.


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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngПримечание: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.pngСовет: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(en)