Orthographic Decal
An Orthographic Decal is a decal projected onto a surface by means of orthographic projection.
Orthographic projection is a form of parallel projection, where all the projection lines are orthogonal to the projection plane, resulting in every plane of the scene appearing in affine transformation on the viewing surface.
Orthographic decals are the most reliable ones as projected from a surface and cannot cause unexpected artifacts (as may perspective projected decals).
See Also
- The DecalOrtho class to manage Orthographic Decals via API
- The decal_base material to be applied to the decal
- A set of samples located in the data/samples/decals/ directory:
- deferred_ortho_00
- deferred_ortho_01
- deferred_ortho_02
- deferred_ortho_03
- deferred_ortho_04
Creating an Orthographic Decal#
To create an orthographic decal, perform the following:
On the Menu bar, choose Create -> Decal -> Orthographic.
Place the decal on the existing surface (for the decal to be projected, the projection box should intersect the surface) and specify the required settings:
Placement of the orthographic decal
Editing an Orthographic Decal#
In the Node tab of the Parameters window, you can adjust the following parameters of the orthographic decal:
Decal Ortho#
Projection parameters of the orthographic decal:
Decal Common#
Parameters common for all types of decals:
Bit Masks#
Viewport Mask | A Viewport mask, specifying if the decal can be seen in the camera's viewport. |
---|---|
Intersection Mask | The decal's Intersection mask is used paired with the cutout intersection mask of clutters and grass to cut out the clutter or grass in the areas of intersection with the decal (e.g. can be used to remove grass from the surface of a road projected using decal). |
Life-Time Parameters#
Life-time and fade-out parameters:
Life Time | A time period during which the decal is projected, in seconds. Set -1 to make the decal permanent. |
---|---|
Fade Time | A time period during which the decal fades away (after its life time exceeds), in seconds. |
Init Time | A time period after which the decal is projected, in seconds. |
Visibility Parameters#
Parameters controlling decal's visibility depending on the distance:
Min Visibility | A minimum visibility distance, starting at which the decal begins to fade in and then becomes completely visible, in units. |
---|---|
Min Fade | A minimum fade-in distance, across which the decal smoothly becomes visible due to the alpha fading. It is counted starting from the minimum visibility distance value, in units. |
Max Visibility | A maximum visibility distance, starting at which the decal begins to fade out until becomes completely invisible, in units. |
---|---|
Max Fade | A maximum fade-out distance, across which the decal smoothly becomes invisible due to the alpha fading. It is counted starting from the maximum visibility distance value, in units. |
Texture Coordinates Transformation#
Decal's texture coordinates transformation (a texture atlas can also be used):
Scale X | A texture size along the X axis. For example, by the scale of 2 the texture is reduced twice on one decal. |
---|---|
Scale Y | A texture size along the Y axis. |
Translate X | A texture offset along the X axis. For example, by the offset of 0.5 along the X axis the texture is repositioned to the right (so that the edge of the texture is rendered in the center). |
Translate Y | A texture offset along the Y axis. |
Setting a Material#
A material selection:
Material | A new material for the decal. |
---|