Placing Decals
From CryWiki
| ||||||||||||||
The following walkthrough gives you an overview of the placing a decals in a Sandbox2 level and assigning it a material.
Contents |
Setup
First, you have to first activate Align to Terrain. This will snap the decal to the terrain when we place it.
Then in the rollup bar, click on Misc under the New tab.
Placing a Decal
Select the decal by clicking the left mouse button, and then move the mouse into the Perspective viewport. Click the left mouse button to place down the decal in its current position.
You can now move/rotate/scale the decal using the usual methods.
Assign a Material
Decals require special materials in order to work.
Selecting a Material
The decal is currently assigned an default material, thus the materials button currently reads Material/Decals/Default. To select another material, click the Material/Decals/Default button.
A Material Editor window will pop up. Here, you can change materials and their properties. Click Materials to show all the materials.
Verify it works with a Decal
Now, select a material by clicking it; preferably one in the Decal subfolder (inside the dotted box).
You should see a preview and a property editor populate the right side. You can use the property editor to change how materials looks. With a decal, the material has to be marked with the Decal flag in the Shader Generation Parameters section in the property editor for it to work.
|
Assign Material to Decal
Choose a material, and right click on it's name. Then click Assign to Selected Objects.
Because our decal is the currently selected object, the material you chose will be assigned to it. Close the material editor now.
Projection Setup
Decals have 4 different projection types, numbered from 0 to 3. For our decal, we are going to use projection 0. Set the value of ProjectionType under Decal Params to 0.
|
|
For more information on the different projections, please read Decal Projections









