Paint holes unity что это
Перейти к содержимому

Paint holes unity что это

Paint Holes

Use the Paint Holes tool to hide portions of your Terrain The landscape in your scene. A Terrain GameObject adds a large flat plane to your scene and you can use the Terrain’s Inspector window to create a detailed landscape. More info
See in Glossary . It allows you to paint openings in the Terrain for formations such as caves and cliffs.

To access the tool, click the Paint Terrain icon, and select Paint Holes from the drop-down menu.

Paint Holes tool in the Terrain InspectorPaint Holes tool in the Terrain Inspector

To paint holes, click and drag the cursor across the Terrain. To erase holes from the Terrain, click and drag while holding down the Shift key. Use the Brush Size slider to control the size of your tool. The Opacity slider determines the strength of the Brush when you apply it to the Terrain.

Internally, Unity uses a Texture to define the opacity mask for a Terrain surface. When you use the Paint Holes tool to paint on a Terrain, it modifies this Texture. Thus, any holes you paint are visible only if the Terrain Material you use clips or discards texels based on this mask.

Because this tool uses a Texture, you might see aliased edges surrounding holes you paint. Therefore, for example, when you make a cave, you might choose to hide the aliased edges of the hole with other geometry such as rock meshes.

Terrain holes work with lighting, physics, and NavMesh A mesh that Unity generates to approximate the walkable areas and obstacles in your environment for path finding and AI-controlled navigation. More info
See in Glossary baking. Unity discards the Terrain information in areas where you paint holes to ensure accurate lighting, Terrain Colliders An invisible shape that is used to handle physical collisions for an object. A collider doesn’t need to be exactly the same shape as the object’s mesh — a rough approximation is often more efficient and indistinguishable in gameplay. More info
See in Glossary , and baked NavMeshes.

To support physics Colliders, the resolution of the hole’s mask Texture is equal to the resolution of the Terrain’s heightmap A greyscale Texture that stores height data for an object. Each pixel stores the height difference perpendicular to the face that pixel represents.
See in Glossary — 1.

Paint Holes

Use the Paint Holes tool to hide portions of your Terrain. It allows you to paint openings in the Terrain for formations such as caves and cliffs.

To access the tool, click the Paint Terrain icon, and select Paint Holes from the drop-down menu.

Paint Holes tool in the Terrain InspectorPaint Holes tool in the Terrain Inspector

To paint holes, click and drag the cursor across the Terrain. To erase holes from the Terrain, click and drag while holding down the Shift key. Use the Brush Size slider to control the size of your tool. The Opacity slider determines the strength of the Brush when you apply it to the Terrain.

Internally, Unity uses a Texture to define the opacity mask for a Terrain surface. When you use the Paint Holes tool to paint on a Terrain, it modifies this Texture. Thus, any holes you paint are visible only if the Terrain Material you use clips or discards texels based on this mask.

Because this tool uses a Texture, you might see aliased edges surrounding holes you paint. Therefore, for example, when you make a cave, you might choose to hide the aliased edges of the hole with other geometry such as rock meshes.

Terrain holes work with lighting, physics, and NavMesh baking. Unity discards the Terrain information in areas where you paint holes to ensure accurate lighting, Terrain Colliders, and baked NavMeshes.

To support physics Colliders, the resolution of the hole’s mask Texture is equal to the resolution of the Terrain’s heightmap — 1.

Отверстия под краску

Используйте инструмент Закрашивание отверстий, чтобы скрыть части вашего Ландшафта ландшафта в вашей сцене. Игровой объект Terrain добавляет в вашу сцену большую плоскую плоскость, и вы можете использовать окно Terrain Inspector для создания подробного ландшафта. Подробнее
См. в Словарь . Это позволяет рисовать отверстия в ландшафте для таких образований, как пещеры и скалы.

Чтобы получить доступ к инструменту, щелкните значок Закрасить местность и выберите Закрасить отверстия в раскрывающемся меню.

Инструмент Paint Holes в Terrain InspectorИнструмент Paint Holes в Terrain Inspector

Чтобы закрасить отверстия, щелкните и перетащите курсор по местности. Чтобы стереть дыры с ландшафта, нажмите и перетащите, удерживая нажатой клавишу Shift. Используйте ползунок Размер кисти для управления размером инструмента. Ползунок Непрозрачность определяет силу кисти, когда вы применяете ее к ландшафту.

Внутренне Unity использует текстуру для определения маски непрозрачности поверхности Terrain. Когда вы используете инструмент Paint Holes для рисования на ландшафте, он изменяет эту текстуру. Таким образом, любые отверстия, которые вы рисуете, видны только в том случае, если используемый вами Материал ландшафта обрезает или отбрасывает тексели на основе этой маски.

Поскольку этот инструмент использует текстуру, вы можете увидеть сглаженные края вокруг рисуемых отверстий. Поэтому, например, когда вы создаете пещеру, вы можете скрыть сглаженные края отверстия с помощью другой геометрии, такой как сетки скал.

Отверстия в ландшафте работают с освещением, физикой и NavMesh сеткой, которую Unity создает для аппроксимации пешеходных зон и препятствий в вашем среда для поиска пути и навигации под управлением ИИ. Подробнее
См. в Словарь выпечка. Unity отбрасывает информацию о Terrain в областях, где вы рисуете отверстия, чтобы обеспечить точное освещение. Terrain Коллайдеры Невидимая форма, столкновения для объекта. Коллайдер не обязательно должен быть точно такой же формы, как сетка объекта — грубое приближение часто бывает более эффективным и неразличимым в игровом процессе. Подробнее
Смотрите в Словарь и запекайте NavMeshes.

Для поддержки физических коллайдеров разрешение текстуры маски отверстия равно разрешению карты высот оттенка серого ландшафта. который хранит данные о высоте для объекта. Каждый пиксель хранит разницу высот перпендикулярно лицу, которое представляет пиксель.
См. в Словарь — 1.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *