Ru/Creating Holes in Displacements: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
mNo edit summary
Line 10: Line 10:
==Создание новых деформированных поверхностей с дырками==
==Создание новых деформированных поверхностей с дырками==


The best method to create holes in displacement surfaces is to create the hole when the displacements are first created.
Лучший способ создания дырки в деформированной поверхности - это сделать ее в первую очередь.


Follow these steps to create a set of displacements with a square hole in the center:
Чтобы создать квадратное отверстие в центре деформации, проделайте следующие шаги:


#Create a new brush with the [[Hammer Map Tools Toolbar|Block Tool]]. The brush should be the size of the displacement you wish to create:<br/>[[Image:disp_hole_01.jpg|frame|left|Create a brush the size of the displacement.]]{{clr}}
#Создайте новый браш инструментом [[Hammer Map Tools Toolbar|Block Tool]]. Браш должен быть размером с желаемую деформацию:<br/>[[Image:disp_hole_01.jpg|frame|left|Создайте браш с размерами деформации.]]{{clr}}
#Use the [[Hammer Clipping Tool|Clip Tool]] in the Top 2D View to cut the brush in the vertical direction. This split will be the ''left side'' of the hole:<br/>{{note|Press the '''Clip Tool''' icon until both sides of the brush are highlighted in white.}}<br/>[[Image:disp_hole_02.jpg|frame|left|Using the '''Clip Tool''' to create the left side of the hole.]]{{clr}}
#Используйте инструмент [[Hammer Clipping Tool|Clip Tool]] в верхнем окне 2D,  чтобы разрезать браш по вертикали. Это отделит ''левую сторону'' дырки:<br/>{{note:ru|Щелкайте по иконке '''Clip Tool''', пока все стороны браша не будут подсвечены белым.}}<br/>[[Image:disp_hole_02.jpg|frame|left|Создайте левую сторону от дырки с помощью '''Clip Tool'''.]]{{clr}}
#Use the '''Clip Tool''' to cut the brush three more times -- cut the brush on the right side first.<br/>Then select the center piece with the [[Hammer Map Tools Toolbar|Selection Tool]].<br/>Switch back to the '''Clip Tool''' and clip the center brush two times horizontally, to create a square in the middle. The end result should look something like this:<br/>[[Image:disp_hole_03.jpg|frame|left|Cut the brush for the other sides of the hole.]]{{clr}}
#Используйте '''Clip Tool''', чтобы также вырезать блок справа.<br/>Затем выберите центральную часть инструментом [[Hammer Map Tools Toolbar|Selection Tool]].<br/>Снова вернитесь к  '''Clip Tool''' и обрежьте центр браша по горизонтали два раза, чтобы создать по центру квадрат. Конечный результат должен выглядеть примерно так:<br/>[[Image:disp_hole_03.jpg|frame|left|Вырежьте браш с других сторон от дырки.]]{{clr}}
#Using the '''Selection Tool''', select the brush square in the middle that was a result of the clips you made. Press the '''Delete''' key to delete the brush, leaving a hole in the center of the brushes:<br/>[[Image:disp_hole_04.jpg|frame|left|Select the center brush and delete it.]]{{clr}}
#Используя инструмент '''Selection Tool''', выделите только что вырезанный по центру квадрат. Нажмите кнопку '''Delete''', чтобы удалить браш, образовав дырку по центру:<br/>[[Image:disp_hole_04.jpg|frame|left|Выберите браш по центру и удалите его.]]{{clr}}
#Select the two side brushes with the '''Selection Tool''':<br/>[[Image:disp_hole_05.jpg|frame|left|Select the side brushes.]]{{clr}}
#Инструментом '''Selection Tool''' выделите два браша по краям:<br/>[[Image:disp_hole_05.jpg|frame|left|Выберите браши.]]{{clr}}
#Select the [[Hammer Map Tools Toolbar|Vertex Edit Tool]] to go into Vertex Editing Mode:<br/>[[Image:disp_hole_06.jpg|frame|left|Switch to '''Vertex Editing Mode'''.]]{{clr}}
#Выберите [[Hammer Map Tools Toolbar|Vertex Edit Tool]] чтобы перейти в режим редактирования вершин:<br/>[[Image:disp_hole_06.jpg|frame|left|Переключение в '''вертексный режим'''.]]{{clr}}
#In the '''Top 2D View''', select the corner point, and drag it towards the center square, as shown:<br/>[[Image:disp_hole_07.jpg|frame|left|Move a corner point towards the corner of the hole.]]{{clr}}
#В верхнем окне '''2D-вида''' выберите угловую точку, и перетяните ее к центру квадрата, как показано:<br/>[[Image:disp_hole_07.jpg|frame|left|Перетяните угловую точку в угол дыры.]]{{clr}}
#Repeat the same operation for the other three corners -- drag them toward the four center points as shown:<br/>[[Image:disp_hole_08.jpg|frame|left|Move the other corner points to match.]]{{clr}}
#Повторите эту операцию с тремя другими углами -- перетащите их к центру, как на рисунке:<br/>[[Image:disp_hole_08.jpg|frame|left|Переместите другие точки соответственно.]]{{clr}}
#While still in '''Vertex Edit Mode''', select one of the remaining two brushes. Hold down Ctrl and select the other one as well. Your selection should match this image:<br/>[[Image:disp_hole_09.jpg|frame|left|Select the other two brushes using CTRL-left-click.]]{{clr}}
#В режиме '''вертексного редактирования''', выберите один из оставшихся двух брашей. Удерживая Ctrl также выберите другой. Выделенные части должны соответсвовать картинке:<br/>[[Image:disp_hole_09.jpg|frame|left|Выберите два браша с помощью CTRL-щелчок левой кнопкой.]]{{clr}}
#Drag the outer vertices of these brushes to line up with the four outer corners, to match the following image:<br/>[[Image:disp_hole_10.jpg|frame|left|Vertex edit the brushes to fit the outer edges.]]{{clr}}
#Перетяните внешние вершины этих брашей, чтобы они выстроились в линию с четырьмя внешними углами, как на следующем рисунке:<br/>[[Image:disp_hole_10.jpg|frame|left|Редактирование вершин брашей для соответствия с внешними краями.]]{{clr}}
#Switch to the [[Hammer Map Tools Toolbar|Texture Application Tool]], and select all of the top faces of the brushes by left-clicking one of them in the '''3D View''', then holding down CTRL and left-clicking the remaining faces. Only select the tops of the brushes, as shown here:<br/>[[Image:disp_hole_11.jpg|frame|left|Select all the top faces in '''Face Edit Mode'''.]]{{clr}}
#Переключитесь на инструмент [[Hammer Map Tools Toolbar|Texture Application Tool]], и, зажав CTRL, в окне'''3D''' щелкайте левой кнопкой по верхней стороне всех четырех брашей. Выделите только верхнюю часть, как показано здесь:<br/>[[Image:disp_hole_11.jpg|frame|left|Выберите верхнюю грань.]]{{clr}}
#Switch to the '''Displacement''' tab in the '''Face Edit''' dialog box. Press the '''Create''' button to create the displacements on the selection faces. You should now have a set of displacements with a hole cut in the center:<br/>[[Image:disp_hole_12.jpg|frame|left|Create the displacements using the brushes you've edited.]]{{clr}}These displacements can now be freely painted or transformed. Because the four outside edges are not split, these displacements can be sewn to and surrounding geometry seamlessly.{{clr}}
#В диалоговом окне '''Face Edit''' переключитесь на вкладку '''Displacement'''. Нажмите кнопку '''Create''', чтобы создать деформацию выбранных поверхностей. Теперь у вас должна быть деформация с дыркой по середине:<br/>[[Image:disp_hole_12.jpg|frame|left|Создайте деформации с помощью редактированных брашей.]]{{clr}}Теперь эти деформации могут свободно рисоваться или трансформироваться. Поскольку четыре внешних края не разделены, эти деформации могут быть беспрепятственно сшиты с окружающей геометрией.{{clr}}


==Using clipping to add holes to existing displacements ==
==Using clipping to add holes to existing displacements ==

Revision as of 02:23, 7 August 2015

Template:Otherlang2 Иногда, по каким-либо причинам, вам необходимо создать дырку или проем в деформированных поверхностях. Из-за требований к деформациям, автоматически это сделать нельзя. Вместо этого вы можете использовать комбинацию из вертексного и обрезного редактирования. С их помощью вам удастся создать дырки в деформированных поверхностях с совмещенными гранями, а затем рисовать, сшивать и трансформировать их как одну поверхность

Способ зависит от того, начинаете ли вы с нуля, или у вас уже есть деформация, где нужна дырка.

Создание новых деформированных поверхностей с дырками

Лучший способ создания дырки в деформированной поверхности - это сделать ее в первую очередь.

Чтобы создать квадратное отверстие в центре деформации, проделайте следующие шаги:

  1. Создайте новый браш инструментом Block Tool. Браш должен быть размером с желаемую деформацию:
    Создайте браш с размерами деформации.
  2. Используйте инструмент Clip Tool в верхнем окне 2D, чтобы разрезать браш по вертикали. Это отделит левую сторону дырки:
    Template:Note:ru
    Создайте левую сторону от дырки с помощью Clip Tool.
  3. Используйте Clip Tool, чтобы также вырезать блок справа.
    Затем выберите центральную часть инструментом Selection Tool.
    Снова вернитесь к Clip Tool и обрежьте центр браша по горизонтали два раза, чтобы создать по центру квадрат. Конечный результат должен выглядеть примерно так:
    Вырежьте браш с других сторон от дырки.
  4. Используя инструмент Selection Tool, выделите только что вырезанный по центру квадрат. Нажмите кнопку Delete, чтобы удалить браш, образовав дырку по центру:
    Выберите браш по центру и удалите его.
  5. Инструментом Selection Tool выделите два браша по краям:
    Выберите браши.
  6. Выберите Vertex Edit Tool чтобы перейти в режим редактирования вершин:
    Переключение в вертексный режим.
  7. В верхнем окне 2D-вида выберите угловую точку, и перетяните ее к центру квадрата, как показано:
    Перетяните угловую точку в угол дыры.
  8. Повторите эту операцию с тремя другими углами -- перетащите их к центру, как на рисунке:
    Переместите другие точки соответственно.
  9. В режиме вертексного редактирования, выберите один из оставшихся двух брашей. Удерживая Ctrl также выберите другой. Выделенные части должны соответсвовать картинке:
    Выберите два браша с помощью CTRL-щелчок левой кнопкой.
  10. Перетяните внешние вершины этих брашей, чтобы они выстроились в линию с четырьмя внешними углами, как на следующем рисунке:
    Редактирование вершин брашей для соответствия с внешними краями.
  11. Переключитесь на инструмент Texture Application Tool, и, зажав CTRL, в окне3D щелкайте левой кнопкой по верхней стороне всех четырех брашей. Выделите только верхнюю часть, как показано здесь:
    Выберите верхнюю грань.
  12. В диалоговом окне Face Edit переключитесь на вкладку Displacement. Нажмите кнопку Create, чтобы создать деформацию выбранных поверхностей. Теперь у вас должна быть деформация с дыркой по середине:
    Создайте деформации с помощью редактированных брашей.
    Теперь эти деформации могут свободно рисоваться или трансформироваться. Поскольку четыре внешних края не разделены, эти деформации могут быть беспрепятственно сшиты с окружающей геометрией.

Using clipping to add holes to existing displacements

Creating a hole where you have already have displacements is done utilizing the clip tool in combination with vertex editing. This method is not as straightforward as making a hole by creating new displacements, but it will preserve some of the shape of any existing surfaces.

Follow these steps to make a hole in the center of an existing displacement surface:

  1. Select the displacement you wish to create a hole in with the Selection Tool:
    The target displacement.
  2. Use the Clip Tool to cut the displacement in the vertical direction. This split will be the left side of the hole:
    Using the Clip Tool to create the left side of the hole.
  3. Use the Clip Tool to cut the brush three more times -- Cut the displacement on the right side, as well as two times horizontally, to create a square in the middle:
    Cut the brush for the other sides of the hole.
  4. Using the Selection Tool, select the displacement square in the middle that was a result of the clips you made. Press the Delete key to delete the displacement, leaving a hole in the center:
    Select the center brush and delete it.
    The center displacement has been deleted, leaving a hole.
  5. We're not finished yet, because the displacement still needs to be fixed up so it can Sew properly to neighboring surfaces.Switch to the Clip Tool and select the displacement on the right side. In the Top 2D View, use the Clip Tool to trim off the corner piece of the displacement.
    Make sure the clip snaps to corners on the grid, or the displacement will get destroyed:
    Use the Clip Tool to trim the displacement towards the hole.
  6. Repeat the same operation for the other corner of the displacement, as well as the displacement on the left side -- clip each of the corners to create the edges as shown:
    Clip the the edges on the left and right side.
  7. Switch to the Vertex Edit Tool. Select one of the remaining two top and bottom displacements. Hold down CTRL and select the other one as well. Your selection should match this image:
    Select the other two displacements using Ctrl+left click.
  8. Drag the outer vertices of these two displacements to line up with the four outer corners, to match the following image:
    Vertex edit the displacements to fit the outer edges.
  9. Switch to the Face Edit Tool, click the Displacement tab of the Face Edit dialog. Select all of the displacement surfaces by left-clicking one of them in the 3D View, then holding down CTRL and left-clicking the remaining faces. Only select the four displacements.
    Notice how the displacements edges do not line up, due to the clipping that was done:
    Select all the displacements in Face Edit Mode.
  10. Click the Sew button. The displacements should connect to each other like this:
    The final displacements with a hole, after the Sew operation.

These displacements can now be freely painted or transformed. Because the four outside edges are not split, these displacements can be sewn to and surrounding geometry seamlessly.

The following images demonstrate how the displacement geometry created in the previous steps can be attached to other displacements:

The displacement can be sewn to surrounding displacements.
The edges of the center displacement match, allowing for sewing.

See Also

Статьи об окружающей среде
Текстуры неба и создание неба Source Source: Небосвод (2D)Объёмное небо (3D)HDR-текстуры небаСоздание текстур неба в TerragenСоздание текстур неба в Terragen - подробноСписок текстур неба


Source 2 Source 2: Объёмное небо (3D)

Создание рельефа местности и деформация поверхностей Деформированные поверхностиСоздание отверстий в деформированных поверхностяхЦифровые модели местностиСоздание рельефа в Worldmachine