Размещение декалей в редакторе

Материал из CryWiki Russia

Перейти к: навигация, поиск

Содержание

Размещение декалей в редакторе

Decals image001.jpg

Описание

Следующее руководство опишет процесс настройки и размещения декалей в редакторе, вы узнаете как назначить материал и различные типы проекции декалей.

Decals image003.jpg

Добавление декали на уровень

Выбор декали

Чтобы добавить декаль в игре, для начала активируйте Follow Terrain, затем перейдите в библиотеку Misc, размещённую в RollupBar и выберите Decal.

Decals image005.png

Decals image007.png

Добавление декали на уровень

Выберите декаль, кликнув по ней левой кнопкой мыши, и затем переместите мышь в окне перспективы. Инструмент «Follow terrain», который был ранее активирован, привяжет новый объект к ландшафту, при его перемещении.

Нажмите кнопку мыши, чтобы поместите декаль в его нынешнее положение. Потом вы сможете перемещать/вращать/масштабировать декаль, используя команды Editing Mode, расположенные в меню Edit или на панели инструментовEditingMode.

Decals image009.png

Настройка материала декали

В параметрах материала декали должен быть отмечен флаг Decal в Shader Generation Parameters, как показано ниже.

Decals image011.png

Для начала откройте папку Materials, а затем перейдите в папку Decals в Material Editor. Все декали в этой папке правильно настроены для использования в качестве декалей.

Decals image013.png

Once you have selected a material click the Assign Material to Selection button.

Decals image002.png

Decal Projection types

Decals have 4 different projection types, numbered 0 to 3. To change this, select the decal and change the value in the Projection type line, shown below.

Decals image015.png

Projection Type 0

The decal will be displayed in the exact same position in space as where you placed the center of the object.

Decals image017.png

Projection Type 1

The decal will be projected onto the geometry of an object in the level. It will be projected along the opposite direction to the blue Z axis.

Decals image019.png

Projection Type 2

The decal will be projected directly on to the terrain of your level.

Decals image021.png

Projection Type 3

This projection type is a combination of type 2 and 3, and will be displayed on both the terrain and objects.

Decals image023.png

Manual placement of decals on objects or the terrain

Select the decal entity, activate Reorientate and use Mouse shortcuts to place the decal: |Hold down CTRL and click the mouse button| move the decal to the desired position| |Hold down ALT and click the mouse button| scale the decal along the local x/y-axis| |Hold down CTRL+ALT and click the mouse button| rotate the decal around the local z-axis|

This will speed up placement enormously.


Result

Good placement of decals can bring your level to life. They can also be used to create seamless transitions between many different objects.

Decals image025.jpg

Decals image027.jpg

See Also