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

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

Версия от 15:43, 10 апреля 2011; DCamer (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Содержание

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

Decals image001.jpg

Описание

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

Decals image003.jpg

Placing a Decal in the Level

Selecting the decal entity

To place a decal in the game, you have to first activate Follow Terrain, then go into the Misc Object Type library located in the RollupBar and select Decal.

Decals image005.png

Decals image007.png

Placing a decal in the level

Select the decal by clicking the mouse button, and then move the mouse into the perspective viewport. The Follow Terrain tool that was previously selected will snap the new object to the terrain as you move it around.

Click to place the decal in its current position. You can then move/rotate/scale the decal by using the Editing Mode commands located in the Edit menu or on the EditingMode ToolBar.

Decals image009.png

Setting up the decal material

A decal material has to be marked with the Decal flag in the Shader Generation Parameters in the material options, as shown below.

Decals image011.png

First open the Materials folder and then the Decals folder in the Material Editor. All decals in here are correctly set up for use on decals.

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